﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuoteConsultaNew.aspx.cs" Inherits="NewTierra.Pages.Operacoes.QuoteConsultaNew" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link rel="shortcut icon" href="../../images/Icones/favicon.ico" type="image/x-icon" />

    <link href="../../Styles/jquery_notification.css" rel="stylesheet" />

    <link href="../../Styles/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.11.0.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-ui-1.10.0.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <link href="~/Styles/EstiloGeral.css" rel="stylesheet" type="text/css" />

    <title></title>

    <style type="text/css">
        #Cotacao
        {
            height: 554px;
            width: 1330px;
            margin-top: 25px;
            margin-left: 10px;
            margin-right: 10px;
        }

        .form
        {
            height: auto;
            float: left;
            width: 494px;
            border: 1px solid #d9d9d9;
        }

            .form .form_titulo
            {
                height: 40px;
                font-size: 28px;
                font-family: Arial;
                color: #000;
                text-align: center;
                line-height: 40px;
                background: rgb(242,249,254); /* Old browsers */
                background: -moz-linear-gradient(top, rgba(242,249,254,1) 0%, rgba(214,240,253,1) 100%); /* FF3.6+ */
                background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,249,254,1)), color-stop(100%,rgba(214,240,253,1))); /* Chrome,Safari4+ */
                background: -webkit-linear-gradient(top, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* Chrome10+,Safari5.1+ */
                background: -o-linear-gradient(top, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* Opera 11.10+ */
                background: -ms-linear-gradient(top, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* IE10+ */
                background: linear-gradient(to bottom, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* W3C */
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f9fe', endColorstr='#d6f0fd',GradientType=0 ); /* IE6-9 */
            }

        .form_into
        {
            width: 474px;
            height: 444px;
            padding: 10px;
            background: #FAFAFA;
            color: #666;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        .form_op
        {
            height: 542px;
            width: 1120px;
            /*float: left;*/
            margin-left: auto;
            margin-right: auto;
        }

        .ModalPopupBG
        {
            background-color: gray;
            filter: alpha(opacity=60);
            opacity: 0.7;
        }

        .ModalPopup
        {
            background-color: #fff;
            border-width: 1px;
            border-style: solid;
            border-color: #E6E6E6;
            padding: 3px;
            width: auto;
        }

        .btnGroup
        {
            height: 35px;
            float: left;
            margin-top: 10px;
        }

        .nomeGrupo
        {
            width: 383px;
            float: left;
            height: 47px;
        }

        .nomeGrupo_parametros
        {
            width: 457px;
            float: left;
            height: 47px;
        }

        .btnsQuote
        {
            height: 35px;
            margin-top: 8px;
            float: left;
            width: 465px;
        }

        .filtroFile
        {
            height: 57px;
            border: 1px solid gray;
            border-radius: 10px;
            background-color: #d9d9d9;
            text-align: center;
            position: relative;
            margin-left: auto;
            margin-right: auto;
            padding: 10px;
        }

        .FiltrosHoteis
        {
            border: 1px solid #999;
            margin-bottom: 5px;
            padding: 10px;
            background-color: #EEE;
            height: auto;
            background: #FAFAFA;
            color: #666;
            width: 628px;
        }

        .BoxAddServExtra
        {
            border: 1px solid #999;
            width: 648px;
            float: left;
            padding: 10px;
            background-color: #EEE;
            height: auto;
            background: #FAFAFA;
            color: #666;
            width: 628px;
        }

        .modalIntoGridGrupos
        {
            height: 207px;
            overflow-y: auto;
            overflow-x: hidden;
            width: 370px;
            padding: 10px;
            margin-left: auto;
            margin-right: auto;
        }

        .filtros_drop
        {
            width: 627px;
            height: 103px;
        }

            .filtros_drop .filtros_drop_into
            {
                width: 199px;
                float: left;
                height: 46px;
            }

            .filtros_drop .filtros_drop_into_btn
            {
                width: 126px;
                margin-top: 10px;
                float: left;
                height: 39px;
            }

        .DataListHoteis
        {
            /*padding: 10px;*/
            border: 1px solid #e8e8e8;
            width: 806px;
            margin-left: 0px;
            margin-top: 10px;
            float: left;
            height: auto;
        }

        .EstiloDataListHoteis
        {
            height: auto;
            width: 814px;
            margin-bottom: 15px;
            /*border-top: 1px solid #EEE;*/
            padding: 10px;
        }

            .EstiloDataListHoteis .infos
            {
                width: 818px;
                height: 72px;
                float: left;
            }

        .infos .FotoHotel
        {
            height: 120px;
            width: 160px;
            float: left;
        }

        .infos .TituloHotel
        {
            width: 360px;
            float: left;
            height: 45px;
            font-family: Verdana;
            margin-left: 10px;
        }

        .infos .TituloHotelDL
        {
            width: 562px;
            float: left;
            height: 35px;
            font-family: Verdana;
            margin-left: 10px;
        }

        .infos .TituloServicos
        {
            width: 517px;
            float: left;
            height: 38px;
            font-family: Verdana;
            margin-left: 10px;
        }

        .infos .EnderecoHotel
        {
            width: 700px;
            float: left;
            height: 24px;
            font-family: Verdana;
            margin-left: 10px;
        }

        .infos .DescricaoHotel
        {
            width: 360px;
            float: left;
            height: 50px;
            font-family: Verdana;
            margin-left: 10px;
            overflow-y: hidden;
            overflow-x: hidden;
        }

        .infos .Bloqueio
        {
            height: 16px;
            float: left;
            width: 360px;
            font-family: Verdana;
            margin-left: 10px;
        }

        .infos .InfoHotel
        {
            width: 507px;
            height: 28px;
            margin-left: 10px;
            float: left;
        }

        .EstiloDataListHoteis .TarifaHotel
        {
            width: 130px;
            float: left;
            height: 71px;
            font-family: Verdana;
            margin-left: 0px;
            font-weight: bold;
            margin-top: 2px;
        }

        .tabHoteis
        {
            height: 478px;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .tabTransfers
        {
            height: 478px;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .tabTours
        {
            height: 478px;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .DataListHoteisTarifas
        {
            width: 537px;
            height: auto;
            margin-bottom: 0px;
        }

        .into
        {
            height: 17px;
            width: 363px;
            padding: 5px;
            margin-top: 5px;
        }

            .into .qtr
            {
                width: 101px;
                float: left;
                height: 13px;
                font-weight: bold;
            }

            .into .rom
            {
                width: 76px;
                float: left;
            }

            .into .tr
            {
                width: 78px;
                float: left;
                height: 13px;
            }

            .into .chk
            {
                width: 19px;
                float: left;
                height: 18px;
            }

        .DataListCarrinhoFile_header
        {
            background-color: #88BFB7;
            width: 561px;
            color: #FFFFFF;
        }

        .Description_Grids
        {
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-size: small;
            font-weight: bold;
            color: #636363;
        }

        .Description_Grids_Hoteis
        {
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-size: 12px;
            font-weight: bold;
            color: gray;
        }

        .Description_Grids_Trf
        {
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-size: 12px;
            font-weight: bold;
            color: #7e7eff;
        }

        .valoresTotaisCarrinho
        {
            color: #f82600;
            font-size: 12px;
            font-weight: bold;
        }

        .valoresTotaisCarrinhoVenda
        {
            color: #59a4c1;
            font-size: 12px;
            font-weight: bold;
        }

        .valoresTotaisCarrinhoMarkup
        {
            color: #78ac60;
            font-size: 12px;
            font-weight: bold;
        }

        .TotaisCarrinho
        {
            width: 543px;
            margin-left: auto;
            margin-right: auto;
            border: 1px solid #88BFB7;
            background-color: #e8e8e8;
            border-radius: 3px;
            box-shadow: 0px 0px 3px #161616;
        }

        .Emails
        {
            width: 806px;
            height: 500px;
        }

            .Emails .Emails_filtro
            {
                height: 36px;
                float: left;
            }

            .Emails .Emails_MontaEmail
            {
                height: 384px;
                width: 730px;
                float: left;
            }

            .Emails .Emails_btns
            {
                height: 34px;
                margin-top: 20px;
                float: left;
                width: 730px;
            }

        .IntoDivNomesPaxs
        {
            padding: 10px;
            width: 700px;
            height: 500px;
            overflow-y: auto;
            overflow-x: hidden;
        }

            .IntoDivNomesPaxs .box_nomesPaxs
            {
                float: left;
                width: 220px;
                font-family: 'Trebuchet MS';
                font-size: 12px;
                overflow-y: auto;
                overflow-x: hidden;
                color: #727272;
                font-weight: bold;
            }

        #dialog label, #dialog input
        {
            display: block;
        }

        #dialog label
        {
            margin-top: 0.5em;
        }

        #dialog input, #dialog textarea
        {
            width: 95%;
        }

        #tabs
        {
            margin-top: 1em;
        }

            #tabs li .ui-icon-close
            {
                float: left;
                margin: 0.4em 0.2em 0 0;
                cursor: pointer;
            }

        #add_tab
        {
            cursor: pointer;
        }

        .tdDir
        {
            float: right;
        }

        #divQuote
        {
            padding: 10px;
            margin-left: auto;
            margin-right: auto;
            width: 1100px;
            box-shadow: 0px 0px 3px #727272;
            height: 250px;
            background: #f9f9f9;
            color: #666;
        }


        .ui-tabs .ui-widget-header .status1
        {
            background-color: #559ffa;
        }

        .FormMarkup
        {
            height: 344px;
            width: 476px;
            float: left;
        }

            .FormMarkup .box_form
            {
                height: 51px;
                width: 185px;
                float: left;
            }

            .FormMarkup .box_form_footer
            {
                float: left;
                width: 427px;
                height: 36px;
            }

        .GridMarkups
        {
            width: 588px;
            float: left;
            margin-left: 15px;
            height: 305px;
            margin-top: 10px;
        }

        .tdPopTarifas
        {
            width: 400px;
        }
    </style>

</head>

<body>

    <form id="form1" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <script type="text/javascript">

            var cidadeTrans, cidadeTour;
            var usuarioselectfile, clienteselectfile;

            $(document).ready(function () {
                usuarioselectfile = $("#ddlUsuarioSelectFileCopia").val();
                clienteselectfile = $("#ddlClienteSelectFileCopia").val();
            });

            jQuery(function ($) {
                $.datepicker.regional['pt-BR'] = {
                    closeText: 'Fechar',
                    prevText: '&#x3c;Anterior',
                    nextText: 'Pr&oacute;ximo&#x3e;',
                    currentText: 'Hoje',
                    monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
                 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
                    monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
                 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
                    dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
                    dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                    dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                    weekHeader: 'Sm',
                    dateFormat: 'dd/mm/yy',
                    firstDay: 0,
                    isRTL: false,
                    showMonthAfterYear: false,
                    yearSuffix: ''
                };
                $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
            });

            function jScript() {
                $("input[id$=txtDataIn]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataOut]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataOut]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataIn]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataPeriodoInHotel]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataPeriodoOutHotel]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataPeriodoOutHotel]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataPeriodoInHotel]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataFromTrans]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToTrans]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToTrans]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromTrans]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataFromTours]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToTours]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToTours]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromTours]").datepicker("option", "maxDate", selectedDate);
                    }
                });


                $("input[id$=txtDataFromFlights]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToFlights]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToFlights]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromFlights]").datepicker("option", "maxDate", selectedDate);
                    }
                });


                $("input[id$=txtDataInicialMarkup]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFinalMarkup]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataFinalMarkup]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataInicialMarkup]").datepicker("option", "maxDate", selectedDate);
                    }
                });


                $("input[id$=datainicioRelatorioMapaServicos]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToFlights]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=dataFimRelatorioMapaServicos]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=datainicioRelatorioMapaServicos]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("input[id$=txtDataFromPacote]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataToPacote]").datepicker("option", "minDate", selectedDate);
                    }
                });
                $("input[id$=txtDataToPacote]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1,
                    onClose: function (selectedDate) {
                        $("input[id$=txtDataFromPacote]").datepicker("option", "maxDate", selectedDate);
                    }
                });

                $("#tabs").tabs();

                $("input[id$=txtDataAddDias]").datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    changeYear: true,
                    numberOfMonths: 1
                });

                $("input[id$=txtDataFromTrans]").change(function (event) {

                    var val = $('#txtDataFromTrans').val();

                    var result = $("input[id*='txtDataToTrans']").val(val);

                });

                $("input[id$=txtDataFromTours]").change(function (event) {

                    var val = $('#txtDataFromTours').val();

                    var result = $("input[id*='txtDataToTours']").val(val);

                });

                $('#<%= txtAutoTransfer.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchTransfers.ashx?param1=" + $("#txtAutoCidadeTransfer").val(),
                    minLength: 3
                });

                $('#<%= txtAutoTour.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchTours.ashx?param1=" + $("#txtAutoCidadeTours").val(),
                    minLength: 3
                });

                $('#<%= txtAutoHoteis.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchHoteis.ashx?param1=" + $("#txtAutoCidadeHotel").val(),
                    minLength: 3
                });


                $("#ddlUsuarioSelectFileCopia").change(function () {

                    if ($("#ddlUsuarioSelectFileCopia").val() == 0) {
                        usuarioselectfile = 0;
                    }
                    else {
                        usuarioselectfile = $("#ddlUsuarioSelectFileCopia").val();
                    }
                });

                $("#ddlClienteSelectFileCopia").change(function () {

                    if ($("#ddlClienteSelectFileCopia").val() == 0) {
                        clienteselectfile = 0;
                    }
                    else {
                        clienteselectfile = $("#ddlClienteSelectFileCopia").val();
                    }
                });

                $('#<%= txtAutoSelectFileCopia.ClientID %>').autocomplete({
                    source: "/Pages/ashx/SearchFile.ashx?param1=" + usuarioselectfile + "&param2=" + clienteselectfile,
                    minLength: 1
                });

                $("#imgShowDivQuote").click(function () {
                    $("#divQuote").fadeOut();
                    $("#btnQuoteSelect").fadeIn();
                });

                $("#btnQuoteSelect").click(function () {
                    $("#divQuote").fadeIn();
                    $("#btnQuoteSelect").fadeOut();
                });

                $("#btnFiltroFile").click(function () {
                    $("#divQuote").fadeOut();
                    $("#btnQuoteSelect").fadeIn();
                });

                $('#ddlTransfersPorSupplier').change(function () {
                    if ($('#ddlTransfersPorSupplier option:selected').text() != 'Selecione...') {
                        $('#txtAutoTransfer').val($('#ddlTransfersPorSupplier option:selected').text());
                    } else {
                        $('#txtAutoTransfer').val("");
                    }
                });

                $('#ddlToursPorSupplier').change(function () {
                    if ($('#ddlToursPorSupplier option:selected').text() != 'Selecione...') {
                        $('#txtAutoTour').val($('#ddlToursPorSupplier option:selected').text());
                    } else {
                        $('#txtAutoTour').val("");
                    }
                });
            }

            function GetCidadeHotel() {
                alert('teste');
            }

            function MudaCorTab(val) {
                if (val == 1) {
                    $('#tabs .ui-tabs-nav a[href="#tabs-1"], #tabs-1').addClass('status1');
                } else {
                    $('#tabs .ui-tabs-nav a[href="#tabs-2"], #tabs-2').addClass('status1');
                }
            }

            function showAutoCloseMessage(MsgsExc) {
                showNotification({
                    message: MsgsExc,
                    autoClose: true,
                    type: "success",
                    duration: 5
                });
            }

            function AlertarHolidays() {
                alert('Service does not operate on this day.');
            }

            function ShowIcon() {
                var e = document.getElementById("processing");
                e.style.visibility = (e.style.visibility == 'visible') ? 'hidden' : 'visible';
            }

            function CallServerFile() {
                document.getElementById('<%= btnFiltroFile.ClientID %>').click();
            }

            function CallServerGrupo() {
                document.getElementById('<%= btnFiltroNomePaxGrupo.ClientID %>').click();
            }

            function CallServerCidadeHotel() {
                document.getElementById('<%= btnFakeAutoCidadeHotel.ClientID %>').click();
            }

            function CallServerCidadeTransfer() {
                document.getElementById('<%= btnFakeAutoCidadeTransfer.ClientID %>').click();
            }

            function CallServerCidadeTours() {
                document.getElementById('<%= btnFakeCidadeTours.ClientID %>').click();
            }



            function RadioCheck(rb) {
                var gv = document.getElementById("<%=GridColunasFile.ClientID%>");
                var rbs = gv.getElementsByTagName("input");

                var row = rb.parentNode.parentNode;
                for (var i = 0; i < rbs.length; i++) {
                    if (rbs[i].type == "radio") {
                        if (rbs[i].checked && rbs[i] != rb) {
                            rbs[i].checked = false;
                            break;
                        }
                    }
                }
            }

            function Confirm() {
                var confirm_value = document.createElement("INPUT");
                confirm_value.type = "hidden";
                confirm_value.name = "confirm_value";
                if (confirm("Deseja fazer uma copia do file anterior?")) {
                    confirm_value.value = "Sim";
                } else {
                    confirm_value.value = "Não";
                }
                document.forms[0].appendChild(confirm_value);
            }

            function AbrirPopUp(url, title, w, h) {
                var left = (screen.width / 2) - (w / 2);
                var top = (screen.height / 2) - (h / 2);
                return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left + '');
            }

        </script>

        <div class="bgHeader">

            <div class="bgHeader_into">

                <asp:ImageButton ID="ImgVoltarMenu" runat="server" ImageUrl="~/images/Icones/iconeMenu2.png" OnClick="VoltarMenu" ToolTip="Menu" />

            </div>

            <div class="bgHeader_into">

                <asp:Label ID="lblSupplierHeader" runat="server" Text="Cotação" CssClass="titulo" />

            </div>

        </div>

        <div id="Cotacao">

            <asp:UpdatePanel ID="UpdatePanelFormInto" UpdateMode="Conditional" runat="server">
                <ContentTemplate>

                    <div style="margin-left: auto; margin-right: auto; width: 1125px;">
                        <asp:Button ID="btnQuoteSelect" runat="server" Text="" CssClass="btnGeralAzul" Visible="false" OnClick="DivQuoteShow" />
                        <asp:Label ID="lblNomeClienteQuote" runat="server" Text="" />
                        <h3>
                            <asp:Label ID="lblQuoteAtiva" runat="server" Text="" />
                            <asp:Label ID="lblQA" runat="server" Text="" style="display:none;" />
                        </h3>
                    </div>

                    <script type="text/javascript" language="javascript">
                        Sys.Application.add_load(jScript);
                    </script>

                    <div id="divQuote" style="display: <%=divQuoteShow%>;">

                        <div style="float: left; width: 239px; height: 256px;">

                            <table style="width: 244px">
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="imgShowDivQuote" runat="server" ImageUrl="../../images/Icones/seta-topo.png"
                                            Width="24px" Height="24px" OnClick="DivQuoteShowImg" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtCodGrupo" runat="server" Style="display: none;" autocomplete="off" />
                                        <asp:Label ID="lblQuoteNumber" runat="server" Text="Quote NR:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtQuoteNumber" runat="server" Text="" Width="100px" />
                                        <img id="processing" alt="load" style="visibility: hidden" src="../../images/ajax-loader.gif" />
                                        <asp:Button ID="btnFiltroFile" Style="display: none" runat="server" OnClick="CarregarFileNumero" Text="" />

                                        <ajaxToolkit:AutoCompleteExtender
                                            ServiceMethod="SearchFile"
                                            MinimumPrefixLength="1"
                                            CompletionInterval="100"
                                            EnableCaching="False"
                                            TargetControlID="txtQuoteNumber"
                                            OnClientPopulating="ShowIcon"
                                            OnClientPopulated="ShowIcon"
                                            ID="AutoCompleteExtenderQuoteNumber" runat="server"
                                            OnClientItemSelected="CallServerFile"
                                            DelimiterCharacters=""
                                            Enabled="True">
                                        </ajaxToolkit:AutoCompleteExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="btnImgFilter" runat="server" ImageUrl="~/images/Icones/iconFilterPeq.png" OnClick="btnImgFilter_Click" />
                                    </td>
                                </tr>

                            </table>

                            <br />

                            <div style="display: <%=statusFiltros%>; padding: 5px; width: 200px; background: #fff; border-radius: 3px;">

                                <span style="color: #2d76c7; font-family: Verdana; font-size: 15px; float: left; font-weight: bold;">FILTROS</span>

                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFiltroUsuario" runat="server" Text="Usuário:" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlUsuarioFiltro" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlUsuarioFiltro_SelectedIndexChanged" Width="130px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFiltroCliente" runat="server" Text="Cliente:" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlClienteFiltro" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlClienteFiltro_SelectedIndexChanged" Width="130px" />
                                        </td>
                                    </tr>
                                </table>

                            </div>


                        </div>

                        <div style="float: left; width: 771px; height: 277px; margin-left: 15px;">

                            <table style="float: left; width: 653px;">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDataNowTXT" runat="server" Text="Data Quote:" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDataNow" runat="server" Text="" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblNomeGroup" runat="server" Text="Pax Grupo Nome:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNomeGrupo" runat="server" Text="" Width="250px" TabIndex="8" />
                                        <asp:Button ID="btnFiltroNomePaxGrupo" Style="display: none" runat="server" OnClick="CarregarGrupoNome" Text="" />
                                        <ajaxToolkit:AutoCompleteExtender
                                            ServiceMethod="SearchGrupo"
                                            MinimumPrefixLength="1"
                                            CompletionInterval="100"
                                            EnableCaching="False"
                                            TargetControlID="txtNomeGrupo"
                                            OnClientPopulating="ShowIcon"
                                            OnClientPopulated="ShowIcon"
                                            ID="AutoCompleteExtenderGrupoNome" runat="server"
                                            OnClientItemSelected="CallServerGrupo"
                                            DelimiterCharacters=""
                                            Enabled="true">
                                        </ajaxToolkit:AutoCompleteExtender>
                                    </td>
                                    <td>
                                        <div class="btnGroup" style="display: <%=statusGroup%>; width: 76px;">
                                            <asp:Button ID="btnOpenModalGroup" runat="server" Text="Group" CssClass="btnGeralAzul" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDataIN" runat="server" Text="Data in:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDataIn" runat="server" Text="" Width="80px" Enabled="False" TabIndex="1" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblCliente" runat="server" Text="Cliente:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlCliente" runat="server" Enabled="False" Width="250px" TabIndex="9" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblDataOut" runat="server" Text="Data out:" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDataOut" runat="server" Text="" Width="80px" Enabled="False" TabIndex="2" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblAdult" runat="server" Text="ADL:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlAdultos" runat="server" Enabled="False" Width="50px" AutoPostBack="True" OnSelectedIndexChanged="ddlAdultos_SelectedIndexChanged" TabIndex="10" />
                                        <asp:Button ID="btnAddNomesPaxs" runat="server" Text="nomes/rooming" Style="width: 100px; padding: 2px;" OnClick="btnAddNomesPaxs_Click" />
                                        <asp:Button ID="btnFakeNomesPaxs" runat="server" Style="display: none;" />
                                        <asp:Button ID="btnAddMarkup" runat="server" Text="markup" Style="width: 70px; padding: 2px;" Visible="false" OnClick="btnAddMarkup_Click" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblTipoQuote" runat="server" Text="Tipo:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlTipoTarifa" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTipoTarifa_SelectedIndexChanged" Enabled="False" Width="130px" TabIndex="3" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblChd" runat="server" Text="CHD:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlChd" runat="server" Enabled="False" Width="50px" TabIndex="11" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblUsuario" runat="server" Text="Usuário:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlUsuario" runat="server" Enabled="False" Width="130px" TabIndex="4" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblInf" runat="server" Text="INF:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlInf" runat="server" Enabled="False" Width="50px" TabIndex="12" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblLinguagem" runat="server" Text="Linguagem:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlLinguagem" runat="server" Enabled="False" Width="130px" TabIndex="5" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblStatus" runat="server" Text="Status:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlStatus" runat="server" Enabled="False" Width="130px" TabIndex="6" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblMoeda" runat="server" Text="Moeda:" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlMoeda" runat="server" Enabled="False" Width="130px" TabIndex="7" />
                                    </td>
                                    <td></td>
                                    <td colspan="5">
                                        <asp:Button ID="btnNovoCotacao" runat="server" Text="Novo" CssClass="btnGeralAzul" OnClick="CadastrarFile" ValidationGroup="Salvar" />
                                        <asp:Button ID="btnAtualizarCotacao" runat="server" OnClick="AtualizarFile" Text="Atualizar" CssClass="btnGeralAzul" ValidationGroup="Salvar" />
                                        <asp:Button ID="btnExcluirCotacao" runat="server" OnClick="ExcluirFile" Text="Excluir" CssClass="btnGeralAzul" OnClientClick="return confirm('Excluindo esse supplier, todos os períodos e tarifas do mesmo também serão excluídas. Confirma?');" />
                                        <asp:Button ID="btnNovoFile" runat="server" OnClick="NovoFile" Text="Novo File" CssClass="btnGeralAzul" Visible="false" />
                                        <br />
                                        <asp:Label ID="lblMsgCadQuotatio" runat="server" Style="font-size: small; color: #6a9a55;" Text="" Font-Bold="True" />
                                    </td>
                                </tr>
                            </table>

                        </div>

                        <asp:Panel ID="PanelGroup" runat="server" CssClass="ModalPopup" Style="display: none; width: 400px; height: 250px; overflow-x: hidden; overflow-y: auto; border-radius: 5px;" Width="410px">

                            <asp:ImageButton ID="btnImgFecharModal" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                            <div class="modalIntoGridGrupos">

                                <asp:GridView ID="GridGroups" runat="server"
                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe grupo para essa quotation."
                                    Height="16px" Width="94px">
                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

                                    <Columns>

                                        <asp:BoundField DataField="Quotation_Grupo_NGrupo" HeaderText="Num Grupo">
                                            <HeaderStyle Wrap="False" />
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Pax_Group_Name" HeaderText="Grupo Nome" SortExpression="Pax_Group_Name">
                                            <HeaderStyle Wrap="False" />
                                            <ItemStyle Wrap="False" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="dataIN" HeaderText="Data in" SortExpression="dataIN" DataFormatString="{0:dd/MM/yyyy}" />
                                        <asp:BoundField DataField="dateOut" HeaderText="Data out" SortExpression="dateOut" DataFormatString="{0:dd/MM/yyyy}" />

                                        <asp:TemplateField HeaderText="">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="lnkEditarGrupo" ToolTip="Editar Grupo"
                                                    runat="server" ImageUrl="~/images/Icones/edit.png"
                                                    CommandArgument='<%# Eval("Quotation_Grupo_Id") %>'
                                                    OnCommand="EditarGrupo" />
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="False" />
                                            <ItemStyle Wrap="False" />
                                        </asp:TemplateField>

                                    </Columns>

                                    <PagerStyle CssClass="pgr"></PagerStyle>

                                </asp:GridView>

                            </div>

                        </asp:Panel>

                        <asp:ModalPopupExtender
                            ID="ModalPopupExtenderAddTarifa"
                            runat="server"
                            BackgroundCssClass="ModalPopupBG"
                            CancelControlID="btnImgFecharModal"
                            DropShadow="false"
                            Enabled="True"
                            PopupControlID="PanelGroup"
                            PopupDragHandleControlID="PopupHeader"
                            RepositionMode="RepositionOnWindowResizeAndScroll"
                            Drag="true"
                            TargetControlID="btnOpenModalGroup">
                        </asp:ModalPopupExtender>

                        <asp:Panel ID="PanelNomesPaxs" runat="server" CssClass="ModalPopup" Style="display: none; width: auto; height: auto; overflow-x: auto; overflow-y: auto;">

                            <asp:ImageButton ID="imgFecharModalNomesPaxs" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                            <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" Style="height: auto; width: auto; margin-top: 10px" TabIndex="0">

                                <ajaxToolkit:TabPanel ID="TabNomes" runat="server" HeaderText="Nomes" TabIndex="0">
                                    <ContentTemplate>

                                        <div class="IntoDivNomesPaxs">

                                            <div style="width: 100%; float: left; margin-bottom: 10px;">
                                                <asp:Button ID="btnSalvarNomesPaxs" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvarNomesPaxs_Click" />
                                            </div>

                                            <div class="box_nomesPaxs">

                                                <span style="font-family: 'Trebuchet MS'; font-size: 20px; color: #727272; font-weight: bold;">ADULTOS:
                                                </span>

                                                <asp:DataList ID="DataListADL" runat="server">
                                                    <ItemTemplate>

                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Image ID="imgADL" runat="server" ImageUrl="~/images/Icones/adlIcon.png" Width="10" Height="24" />
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtADLnome" runat="server" MaxLength="200" Text='<%# Eval("Nome") %>' />
                                                                    <asp:Label ID="lblIdNomeADL" runat="server" Visible="false" Text='<%# Eval("ID") %>' />
                                                                </td>
                                                                <td>
                                                                    <asp:ImageButton ID="deleteAdl" runat="server" ImageUrl="~/images/Icones/delete.png" OnCommand="deleteAdl_Command" CommandArgument='<%# Eval("ID") %>' />
                                                                </td>
                                                            </tr>
                                                        </table>

                                                    </ItemTemplate>
                                                </asp:DataList>

                                            </div>

                                            <div class="box_nomesPaxs">
                                                <span style="font-family: 'Trebuchet MS'; font-size: 20px; color: #727272; font-weight: bold;">CHILDREN:
                                                </span>

                                                <asp:DataList ID="DataListCHD" runat="server">
                                                    <ItemTemplate>

                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Image ID="imgCHD" runat="server" ImageUrl="~/images/Icones/chdIcon.png" Width="13" Height="18" />
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtCHDnome" runat="server" MaxLength="200" Text='<%# Eval("Nome") %>' />
                                                                    <asp:Label ID="lblIdNomeCHD" runat="server" Visible="false" Text='<%# Eval("ID") %>' />
                                                                </td>
                                                                <td>
                                                                    <asp:ImageButton ID="deleteChd" runat="server" ImageUrl="~/images/Icones/delete.png" OnCommand="deleteChd_Command" CommandArgument='<%# Eval("ID") %>' />
                                                                </td>
                                                            </tr>
                                                        </table>


                                                    </ItemTemplate>
                                                </asp:DataList>

                                            </div>

                                            <div class="box_nomesPaxs">

                                                <span style="font-family: 'Trebuchet MS'; font-size: 20px; color: #727272; font-weight: bold;">INFANTES:
                                                </span>

                                                <asp:DataList ID="DataListINF" runat="server">
                                                    <ItemTemplate>

                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Image ID="imgINF" runat="server" ImageUrl="~/images/Icones/INFicon.png" Width="18" Height="21" />
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtINFnome" runat="server" MaxLength="200" Text='<%# Eval("Nome") %>' />
                                                                    <asp:Label ID="lblIdNomeINF" runat="server" Visible="false" Text='<%# Eval("ID") %>' />
                                                                </td>
                                                                <td>
                                                                    <asp:ImageButton ID="deleteInf" runat="server" ImageUrl="~/images/Icones/delete.png" OnCommand="deleteInf_Command" CommandArgument='<%# Eval("ID") %>' />
                                                                </td>
                                                            </tr>
                                                        </table>

                                                    </ItemTemplate>
                                                </asp:DataList>

                                            </div>

                                        </div>

                                    </ContentTemplate>
                                </ajaxToolkit:TabPanel>

                                <ajaxToolkit:TabPanel ID="TabRooming" runat="server" HeaderText="Rooming list" TabIndex="1">
                                    <ContentTemplate>

                                        <div class="IntoDivNomesPaxs">

                                            <table>
                                                <tr>
                                                    <td>Rooming list
                                                        <br />
                                                        <asp:TextBox ID="txtRoomingList" runat="server" Text="" TextMode="MultiLine" Width="500px" Height="200px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="btnSalvarRooming" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvarRooming_Click" />
                                                    </td>
                                                </tr>
                                            </table>

                                        </div>

                                    </ContentTemplate>
                                </ajaxToolkit:TabPanel>

                            </ajaxToolkit:TabContainer>

                        </asp:Panel>

                        <asp:ModalPopupExtender
                            ID="ModalPopupExtenderNomesPaxs"
                            runat="server"
                            BackgroundCssClass="ModalPopupBG"
                            CancelControlID="imgFecharModalNomesPaxs"
                            DropShadow="false"
                            Enabled="True"
                            PopupControlID="PanelNomesPaxs"
                            PopupDragHandleControlID="PopupHeader"
                            RepositionMode="RepositionOnWindowResizeAndScroll"
                            Drag="true"
                            TargetControlID="btnFakeNomesPaxs">
                        </asp:ModalPopupExtender>

                    </div>

                </ContentTemplate>

                <Triggers>
                    <asp:PostBackTrigger ControlID="btnNovoCotacao" />
                    <asp:PostBackTrigger ControlID="btnNovoFile" />
                </Triggers>

            </asp:UpdatePanel>

            <asp:Panel ID="PanelOperacoes" runat="server">

                <div class="form_op">

                    <div id="tabs">
                        <ul>
                            <li><a href="#tabs-1">Quote</a></li>
                            <li><a href="#tabs-2">File</a></li>
                            <li><a href="#tabs-3">Hotels</a></li>
                            <li><a href="#tabs-4">Transfers</a></li>
                            <li><a href="#tabs-5">Tours</a></li>
                            <%--<li><a href="#tabs-6">File</a></li>--%>
                            <li><a href="#tabs-7">Print Offer</a></li>
                            <li><a href="#tabs-8">Reports</a></li>
                            <li><a href="#tabs-9">Emails</a></li>
                        </ul>

                        <div id="tabs-1">

                            <asp:UpdatePanel ID="UpdatePanelNewQuote" runat="server">
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnGeraGrade" />
                                </Triggers>
                                <ContentTemplate>
                                    <table>
                                        <tr>
                                            <td>Base:                                
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtBaseDeNew" runat="server" MaxLength="2" placeholder="De" Width="50px">2</asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtBaseAteNew" runat="server" MaxLength="2" placeholder="Até" Width="50px">2</asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnAddBaseNew" runat="server" Text="Add" OnClick="btnAddBaseNew_Click" /></td>
                                            <td>
                                                <asp:Button ID="btnAddTC" runat="server" Text="Add TC" OnClick="btnAddTC_Click" />
                                            </td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td>
                                                <asp:Button ID="btnAddOpt" runat="server" Text="Add Option" OnClick="btnAddOpt_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnNomearOpts" runat="server" Text="Name Options" OnClick="btnNomearOpts_Click" />
                                            </td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td>
                                                <asp:Button ID="btnDelColuna" runat="server" Text="Deletar Coluna" OnClick="btnDelColuna_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnOrdenarColuna" runat="server" Text="Ordenar Coluna" OnClick="btnOrdenarColuna_Click" Visible="false" />
                                            </td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td>
                                                <asp:Button ID="btnGerarFile" runat="server" Text="Export File" OnClick="btnGerarFile_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnGeraGrade" runat="server" Text="Grid" OnClick="btnGeraGrade_Click" />
                                            </td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td>
                                                <asp:Button ID="btnGerarPacote" runat="server" Text="Gerar Pacote" OnClick="btnGerarPacote_Click" />
                                            </td>
                                        </tr>
                                    </table>

                                    <br />
                                    <br />

                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnQuote1" runat="server" Text="Op 1" OnClick="btnQuote1_Click" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote2" runat="server" Text="Op 2" OnClick="btnQuote2_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote3" runat="server" Text="Op 3" OnClick="btnQuote3_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote4" runat="server" Text="Op 4" OnClick="btnQuote4_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote5" runat="server" Text="Op 5" OnClick="btnQuote5_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote6" runat="server" Text="Op 6" OnClick="btnQuote6_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote7" runat="server" Text="Op 7" OnClick="btnQuote7_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote8" runat="server" Text="Op 8" OnClick="btnQuote8_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote9" runat="server" Text="Op 9" OnClick="btnQuote9_Click" Visible="false" /></td>
                                            <td>
                                                <asp:Button ID="btnQuote10" runat="server" Text="Op 10" OnClick="btnQuote10_Click" Visible="false" /></td>
                                        </tr>
                                    </table>

                                    <div style="overflow-x: auto; overflow-y: auto; width: 1080px; height: auto;">

                                        <asp:GridView ID="GridBasesTarifas" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                            CssClass="mGrid" Style="margin-top: 5px; margin-left: 0px;" Width="650px">

                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                            <SelectedRowStyle CssClass="SelectedRowStyle" />

                                            <Columns>

                                                <asp:TemplateField HeaderText="Opções">
                                                    <ItemTemplate>

                                                        <asp:ImageButton ID="ExluirFileCarrinhoTarifas" ToolTip="Excluir"
                                                            runat="server" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Flag")) %>'
                                                            OnCommand="ExluirFileCarrinhoTarifas"
                                                            ImageUrl="~/images/Icones/delete.png" />

                                                         <asp:ImageButton ID="imgSetaCima" ToolTip="Up"
                                                            runat="server" ImageUrl="~/images/arrowd.png"
                                                              OnCommand="imgSetaCima_Command"
                                                             CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("IdRetorna"), Eval("Flag"), Eval("Ordem"), Container.DataItemIndex) %>' />

                                                         <asp:ImageButton ID="imgSetaBaixo" ToolTip="Down"
                                                            runat="server"  ImageUrl="~/images/arrowu.png"
                                                             OnCommand="imgSetaBaixo_Command"
                                                             CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("IdRetorna"), Eval("Flag"), Eval("Ordem"), Container.DataItemIndex) %>' />

                                                        <asp:HiddenField ID="hdfOrdem" runat="server" Value='<%# Eval("Ordem") %>' />

                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="From">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd.MM}", Eval("dtFrom")) %>' ToolTip='<%# string.Format("{0:dd.MM.yyyy}", Eval("dtFrom")) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="To">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd.MM}", Eval("dtTo")) %>' ToolTip='<%# string.Format("{0:dd.MM.yyyy}", Eval("dtTo")) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Nome">
                                                    <ItemTemplate>

                                                        <table style="border: none;">
                                                            <tr>
                                                                <td style="width: 30px; border: none; font-weight: bold;">
                                                                    <asp:Label ID="lblCidadeIata" runat="server" Text="Cidade" Font-Size="Smaller" />
                                                                    <asp:Label ID="lblCidade" runat="server" Text="Cidade" Font-Size="Smaller" Style="display: none;" />
                                                                </td>
                                                                <td style="width: 100px; border: none;">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text=""></asp:Label>
                                                                    <asp:Label ID="lblSubServico" runat="server" Visible="false" Text='<%# Eval("SubServico") %>' />
                                                                </td>
                                                                <%--<td style="width: 30px; border: none;">
                                                                    <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Sub Serviços" OnCommand="OpenSubServicosNewFile" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("IdRetorna"), Eval("dtFrom"), Eval("dtTo"), Eval("Paying_Pax")) %>' />
                                                                </td>--%>
                                                            </tr>
                                                        </table>

                                                        <asp:Label ID="lblIdRetorna" runat="server" Text='<%# Eval("IdRetorna") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lblFlag" runat="server" Text='<%# Eval("Flag") %>' Visible="false"></asp:Label>

                                                        <asp:Label ID="lblDAY" runat="server" Text='<%# Eval("DAY") %>' Style="display: none;"></asp:Label>

                                                        <asp:Label ID="lblNomeStatus" runat="server" Text='<%# Eval("MealStatus") %>' Visible="false"></asp:Label>

                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Rooms">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRoom" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Room") : "" %>'></asp:Label>
                                                        - 
                                                        <asp:Label ID="lblCategoria" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Categoria") : "" %>'></asp:Label>

                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Stat">
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Trocar status" OnCommand="AtualizarStatusNew" OnClientClick="return confirm('Deseja trocar o status desse item?');" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Status"), Eval("Flag")) %>' />
                                                        <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                    </ItemTemplate>

                                                    <ItemStyle HorizontalAlign="Center" />

                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Flight">
                                                    <ItemTemplate>

                                                        <asp:ImageButton ID="imgFlights" runat="server" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Flag"),"Quote") %>' OnCommand="OpenFlightsNew" ToolTip="Flights" />
                                                        <asp:Label ID="IdFileTarifas" Text='<%# Eval("IdRetorna") %>' runat="server" Visible="false" />

                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Bulk">
                                                    <ItemTemplate>

                                                        <asp:ImageButton ID="imgBulk" runat="server" OnCommand="VerificaBulkGrade" ToolTip="Bulk" OnClientClick="return confirm('Deseja trocar o Bulk desta tarifa?');" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Bulk"), Eval("Flag")) %>' />
                                                        <asp:Label ID="lblBulk" Text='<%# Eval("Bulk") %>' runat="server" Visible="false" />

                                                        <%--<asp:ImageButton ID="imgPaxs" runat="server" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Flag")) %>' ImageUrl="~/images/Icones/people.png" OnCommand="OpenPaxsNew" ToolTip="Paxs" />--%>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel8" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 8, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel9" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 9, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel10" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 10, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel11" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 11, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel12" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 12, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel13" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 13, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel14" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 14, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel15" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 15, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel16" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 16, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel17" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 17, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel18" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 18, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel19" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 19, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel20" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 20, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel21" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 21, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel22" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 22, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel23" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 23, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel24" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 24, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel25" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 25, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel26" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 26, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel27" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 27, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel28" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 28, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel29" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 29, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel30" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 30, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel31" CommandArgument='<%# string.Format("{0},{1},{2},{3},{4},{5}", 31, Eval("IdRetorna"), Eval("Flag"), Eval("dtFrom"), Eval("dtTo"), Eval("SubServico")) %>' OnCommand="TarifasGrid1_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                            </Columns>
                                            <PagerStyle CssClass="pgr"></PagerStyle>

                                        </asp:GridView>                                       
                                    </div>


                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-2">

                            <asp:UpdatePanel ID="UpdatePanelNewFile" runat="server">
                                <ContentTemplate>

                                    <div style="overflow-x: auto; overflow-y: auto; width: 1080px; height: auto;">

                                        <asp:GridView ID="GridBasesTarifasNewFile" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                            CssClass="mGrid" Style="margin-top: 5px; margin-left: 0px;" Width="650px">

                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                            <SelectedRowStyle CssClass="SelectedRowStyle" />

                                            <Columns>

                                                <asp:TemplateField HeaderText="Del">
                                                    <ItemTemplate>

                                                        <asp:ImageButton ID="ExluirFileCarrinhoTarifas" ToolTip="Excluir"
                                                            runat="server" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Flag")) %>'
                                                            OnCommand="ExluirFileCarrinhoTarifasNew"
                                                            ImageUrl="~/images/Icones/delete.png" />

                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="From">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("dtFrom")) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="To">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("dtTo")) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Nome">
                                                    <ItemTemplate>

                                                        <table style="border: none;">
                                                            <tr>
                                                                <td style="width: 30px; border: none; font-weight: bold;">
                                                                    <asp:Label ID="lblCidadeIata" runat="server" Text="Cidade" Font-Size="Smaller" />
                                                                    <asp:Label ID="lblCidade" runat="server" Text="Cidade" Font-Size="Smaller" Style="display: none;" />
                                                                </td>
                                                                <td style="width: 100px; border: none;">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text=""></asp:Label>
                                                                    <asp:Label ID="lblSubServico" runat="server" Visible="false" Text='<%# Eval("SubServico") %>' />
                                                                </td>
                                                                <td style="width: 30px; border: none;">
                                                                    <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Sub Serviços" OnCommand="OpenSubServicosNewFile" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("IdRetorna"), Eval("dtFrom"), Eval("dtTo"), Eval("Paying_Pax")) %>' />
                                                                </td>
                                                            </tr>
                                                        </table>

                                                        <asp:Label ID="lblIdRetorna" runat="server" Text='<%# Eval("IdRetorna") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lblNomeStatus" runat="server" Text='<%# Eval("MealStatus") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lblFlag" runat="server" Text='<%# Eval("Flag") %>' Visible="false"></asp:Label>

                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Rooms">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRoom" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Room") : "" %>'></asp:Label>
                                                        - 
                                                        <asp:Label ID="lblCategoria" runat="server" Text='<%# Eval("Flag").Equals("hotel") ? Eval("Categoria") : "" %>'></asp:Label>

                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Stat">
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Trocar status" OnCommand="AtualizarStatusFileNew" OnClientClick="return confirm('Deseja trocar o status desse item?');" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Status"), Eval("Flag")) %>' />
                                                        <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                    </ItemTemplate>

                                                    <ItemStyle HorizontalAlign="Center" />

                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Flight">
                                                    <ItemTemplate>

                                                        <asp:ImageButton ID="imgFlights" runat="server" CommandArgument='<%# string.Format("{0},{1},{2}", Eval("IdRetorna"), Eval("Flag"), "File") %>' OnCommand="OpenFlightsNew" ToolTip="Flights" />
                                                        <asp:Label ID="IdFileTarifas" Text='<%# Eval("IdRetorna") %>' runat="server" Visible="false" />

                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Bulk">
                                                    <ItemTemplate>

                                                        <asp:ImageButton ID="imgBulk" runat="server" OnCommand="VerificaBulkGrade" ToolTip="Bulk" OnClientClick="return confirm('Deseja trocar o Bulk desta tarifa?');" CommandArgument='<%# string.Format("{0},{1}", Eval("IdRetorna"), Eval("Bulk")) %>' />
                                                        <asp:Label ID="lblBulk" Text='<%# Eval("Bulk") %>' runat="server" Visible="false" />

                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Valor por Pax">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel8" CommandArgument='<%# string.Format("{0},{1},{2},{3}", 8, Eval("IdRetorna"), Eval("Flag"), Eval("SubServico")) %>' OnCommand="TarifasGridNewFile_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:TemplateField>

                                                <asp:TemplateField Visible="false">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkValorTotalHotel9" CommandArgument='<%# string.Format("{0},{1},{2},{3}", 9, Eval("IdRetorna"), Eval("Flag"), Container.DataItemIndex) %>' OnCommand="TarifasGridNewFile_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                        <asp:Label ID="lblIdTarifaTC" runat="server" Text="" Visible="false" />
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" Width="100px" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Total">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblValorTotalHotel10" runat="server" Text="" />
                                                        <asp:LinkButton ID="lnkValorTotalHotel10" Style="display: none;" CommandArgument='<%# string.Format("{0},{1},{2}", 10, Eval("IdRetorna"), Eval("Flag")) %>' OnCommand="TarifasGridNewFile_Command" runat="server" Text="" Font-Underline="False"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" Width="100px" />
                                                </asp:TemplateField>

                                            </Columns>
                                            <PagerStyle CssClass="pgr"></PagerStyle>

                                        </asp:GridView>

                                    </div>

                                     <div style="margin-top: 10px;">

                                            <asp:DataList ID="DataListRates" runat="server" Width="746px" Height="109px" RepeatDirection="Horizontal">

                                                <ItemTemplate>

                                                    <div style="margin-top: 0px; margin-left: 0px; width: 337px; height: 44px; border: thin dashed #d6d6d6;">
                                                        <span style="font-weight: bold; font-size: 10px; color: #724c4c;">
                                                            <table>
                                                                <tr>
                                                                    <td style="width: 600px;">Total per person in:
                                                                        <asp:Label ID="lblRoom" runat="server" Text='<%# Eval("room") %>' Font-Size="10px" />
                                                                        <%--(Travelers from
                                                                        <asp:Label ID="lblBase" runat="server" Text='<%# Eval("Base") %>' Font-Size="10px" />)--%>
                                                                                                                                                
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("total") %>' Font-Size="11px" />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                            <br />

                                                        </span>
                                                    </div>

                                                </ItemTemplate>
                                            </asp:DataList>

                                        </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>


                        </div>

                        <div id="tabs-3">

                            <asp:UpdatePanel ID="UpdatePanelHoteis" runat="server">
                                <ContentTemplate>

                                    <div class="tabHoteis">

                                        <div class="FiltrosHoteis radius" style="width: 700px;">

                                            <div class="filtros_drop" style="width: 700px;">


                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblPeriodoHotel" runat="server" Text="Período:" /><br />
                                                    <asp:TextBox ID="txtDataPeriodoInHotel" runat="server" Text="" Width="80px" />
                                                    <asp:TextBox ID="txtDataPeriodoOutHotel" runat="server" Text="" Width="80px" />
                                                </div>

                                                <div class="filtros_drop_into" style="width: 275px">
                                                    <asp:Label ID="lblCidadeHotel" runat="server" Text="Cidade:" /><br />

                                                    <asp:TextBox ID="txtAutoCidadeHotel" runat="server" Text="" Width="240px" />

                                                    <asp:Button ID="btnFakeAutoCidadeHotel" Style="display: none" runat="server" OnClick="txtAutoCidadeHotel_TextChanged" Text="" />

                                                    <ajaxToolkit:AutoCompleteExtender
                                                        MinimumPrefixLength="1"
                                                        CompletionInterval="100"
                                                        EnableCaching="False"
                                                        TargetControlID="txtAutoCidadeHotel"
                                                        ID="AutoCompleteExtenderCidadeHotel" runat="server"
                                                        OnClientItemSelected="CallServerCidadeHotel"
                                                        DelimiterCharacters="" ServiceMethod="SearchCidade"
                                                        Enabled="True">
                                                    </ajaxToolkit:AutoCompleteExtender>

                                                    <%--<asp:DropDownList ID="ddlCidadeHotel" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCidadeHotel_SelectedIndexChanged" Width="250px" />--%>
                                                </div>

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblHoteisFiltros" runat="server" Text="Hoteis:" /><br />
                                                    <asp:DropDownList ID="ddlHoteisFiltro" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlHoteisFiltro_SelectedIndexChanged" Width="190px" />
                                                </div>

                                                <%--<div class="filtros_drop_into">
                                                <asp:Label ID="lblRoomHotel" runat="server" Text="Room:" /><br />
                                                <asp:DropDownList ID="ddlRoomHotel" runat="server" />
                                            </div>--%>

                                                <div class="filtros_drop_into_btn" style="width: 90px">

                                                    <asp:Button ID="btnProcuraHoteis" runat="server" Text="Procurar" CssClass="btnGeralAzul" OnClick="btnProcurarHoteis_Click" />
                                                    <%--<asp:ImageButton ID="btnProcurarHoteis" runat="server" ToolTip="Procurar" ImageUrl="~/images/Icones/search2.png" OnClick="btnProcurarHoteis_Click" Height="20px" Width="20px" />--%>
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 90px; margin-left: 5px;">

                                                    <asp:RadioButtonList ID="rdoOptFileHotel" runat="server">
                                                        <asp:ListItem Selected="True" Text="Quote" Value="0" />
                                                        <asp:ListItem Text="File" Value="1" />
                                                    </asp:RadioButtonList>

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 272px; margin-left: 14px; display: none;">

                                                    <asp:Label ID="lblHotelSearch" runat="server" Text="Hotel:" /><br />
                                                    <asp:TextBox ID="txtAutoHoteis" runat="server" Text="" Width="240px"></asp:TextBox>

                                                </div>

                                                <div class="filtros_drop_into_btn" style="margin-left: 14px;">
                                                    <asp:Label ID="lblCategoriaSupplier" runat="server" Text="Categoria:"></asp:Label><br />
                                                    <asp:DropDownList ID="ddlCategoriaHoteis" runat="server"></asp:DropDownList>
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 78px; margin-left: 0px;">

                                                    <asp:Label ID="lblPaxsHoteis" runat="server" Text="Paxs:" Visible="false" /><br />
                                                    <asp:DropDownList ID="ddlPaxsHoteis" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPaxsHoteis_SelectedIndexChanged" Visible="false" Width="50px" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 86px;">

                                                    <asp:Label ID="lblEstacaoHoteis" runat="server" Text="Estação:" Visible="false" /><br />
                                                    <asp:DropDownList ID="ddlEstacoesHoteis" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="ddlEstacoesHoteis_SelectedIndexChanged" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 61px;">
                                                    <asp:Button ID="ShowAddTarifaVazia" runat="server" Text="Add" OnClick="ShowAddTarifaVazia_Click" Visible="false" />
                                                </div>

                                                <%--<div class="filtros_drop_into">
                                                <asp:Label ID="lblSelectFDS" runat="server" Text="FDS:" /><br />
                                                <asp:DropDownList ID="ddlSelectFDS" runat="server" Width="100px" AutoPostBack="True" />
                                            </div>--%>
                                            </div>

                                        </div>

                                        <div class="DataListHoteis">

                                            <asp:DataList ID="DataListHoteis" runat="server" RepeatDirection="Vertical" RepeatColumns="1" OnItemDataBound="DataListHoteis_ItemDataBound" Height="85px" Width="848px">

                                                <ItemTemplate>

                                                    <div class="EstiloDataListHoteis">

                                                        <div class="infos">

                                                            <div class="TituloHotelDL">

                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="lblTituloPacote" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Bold="True" ForeColor="#0e86be" Style="font-size: 18px; font-family: Verdana;"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="lblQuarto" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tarif_categoria_nome") %>' Font-Bold="true" Font-Size="12px"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="lblTipoRoom" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tipo_room_nome") %>' Font-Size="12px" Style="font-family: Verdana; color: black;" Font-Bold="True"></asp:Label></span>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </div>

                                                            <div style="float: left; height: 34px; width: 243px;">

                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnInfoHotel" runat="server" ImageUrl="~/images/Icones/infoN.png" OnCommand="InfoHotel" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' ToolTip="Informações do Hotel" Style="width: 24px; height: 24px;" />
                                                                            <asp:ImageButton ID="ibtnTarifas" runat="server" ImageUrl="~/images/Icones/exchange.png" OnCommand="ibtnTarifas_Command" ToolTip="Tarifas" Style="width: 24px; height: 24px;" />
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="Black"></asp:Label>
                                                                            <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# Eval("S_merc_tarif_porApartamento") != "" && Eval("S_merc_tarif_tarifa_total") != ""  ? string.Format("{0:N}", Convert.ToDecimal(Eval("S_merc_tarif_tarifa_total")) / Convert.ToDecimal(Eval("Tipo_room_number"))) : Eval("S_merc_tarif_tarifa_total") %>' ForeColor="Black" Font-Bold="True"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </div>

                                                            <div class="EnderecoHotel">

                                                                <asp:Label ID="lblQuartoID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tarif_categoria_id") %>' Style="display: none;"></asp:Label>
                                                                <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Style="display: none;"></asp:Label>

                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Pacote: 
                                                                                <asp:Label ID="lblNomePacote" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Pacote_nome") %>' Visible="True"></asp:Label></span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Estação: 
                                                                                <asp:Label ID="lblEstacao" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_mercado_estacao_nome") %>'></asp:Label>
                                                                            </span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Período In:
                                                                                <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "S_merc_periodo_from")) %>'></asp:Label></span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">Período Out:
                                                                                <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "S_merc_periodo_to")) %>'></asp:Label></span>
                                                                        </td>
                                                                        <td>
                                                                            <span style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #999;">
                                                                                <asp:Label ID="lblFDS" runat="server" Text='<%# string.Format("{0} / {1}", DataBinder.Eval(Container.DataItem, "S_merc_periodo_fdsFrom"), DataBinder.Eval(Container.DataItem, "S_merc_periodo_fdsTo")) %>'></asp:Label></span>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>

                                                        </div>

                                                        <div class="DataListHoteisTarifas" style="display: <%=statusDataListHoteisTarifas%>;">
                                                            <table>
                                                                <tr>
                                                                    <td>Tarifas por pessoa
                                                                        <asp:DataList ID="DataListHoteisTarifas" runat="server" Height="16px" RepeatColumns="1" RepeatDirection="Vertical">
                                                                            <ItemTemplate>
                                                                                <div style="border: 1px solid #e8e8e8; border-radius: 5px;">
                                                                                    <table>
                                                                                        <td>
                                                                                            <asp:ImageButton ID="OpenPoliticaCHD" ToolTip="Política CHD"
                                                                                                runat="server" CommandArgument='<%# Eval("S_merc_tarif_id") %>'
                                                                                                OnCommand="OpenPoliticaCHD_Command" />
                                                                                        </td>
                                                                                        <td style="width: 80px;">
                                                                                            <asp:Label ID="lblCategoria" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tarif_categoria_nome") %>' Visible="false" />
                                                                                            <asp:Label ID="lblCategoriaId" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tarif_categoria_id") %>' Visible="false" />
                                                                                            <asp:Label ID="lblRoom" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tipo_room_nome") %>' />
                                                                                            <asp:Label ID="lblRoomId" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("Tipo_room_id") %>' Visible="false" />
                                                                                            <asp:Label ID="lblSupplierId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblEmailSupplier" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("EmailSupplier") %>' Visible="false"></asp:Label>

                                                                                        </td>
                                                                                        <td style="width: 100px;">
                                                                                            <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("Moeda_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMoeda" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_mercado_tarifa_status_nome") == null ? Eval("Moeda_sigla") : "" %>'></asp:Label>
                                                                                            <asp:Label ID="lblValorTotal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_tarif_porApartamento") == "" || Eval("S_merc_tarif_porApartamento") == null ? Eval("S_merc_tarif_tarifa_total") : string.Format("{0:N}", Convert.ToDecimal(Eval("S_merc_tarif_tarifa_total")) / Convert.ToDecimal(Eval("Tipo_room_number")))   %>' />
                                                                                            <asp:Label ID="lblStatus" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_mercado_tarifa_status_nome") != null ? Eval("S_mercado_tarifa_status_nome") : "" %>' />
                                                                                        </td>
                                                                                        <td>
                                                                                            <asp:DropDownList ID="ddlQtd" runat="server">
                                                                                                <asp:ListItem Text="0" Value="0" />
                                                                                                <asp:ListItem Text="1" Value="1" />
                                                                                                <asp:ListItem Text="2" Value="2" />
                                                                                                <asp:ListItem Text="3" Value="3" />
                                                                                                <asp:ListItem Text="4" Value="4" />
                                                                                                <asp:ListItem Text="5" Value="5" />
                                                                                                <asp:ListItem Text="6" Value="6" />
                                                                                                <asp:ListItem Text="7" Value="7" />
                                                                                                <asp:ListItem Text="8" Value="8" />
                                                                                                <asp:ListItem Text="9" Value="9" />
                                                                                                <asp:ListItem Text="10" Value="10" />
                                                                                            </asp:DropDownList>
                                                                                        </td>
                                                                                        <td>
                                                                                            <asp:Label ID="lblIdTarifa" runat="server" Text='<%# Eval("S_merc_tarif_id") %>' Visible="false" />
                                                                                            <asp:Button ID="btnAddRooms" runat="server" CssClass="btnGeralAzul" Text="Add" OnClick="BtnAddRooms" />
                                                                                        </td>
                                                                                    </table>



                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:DataList>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>

                                                        <div class="DataListHoteisTarifas" style="display: <%=statusDataListHoteisTarifas%>;">
                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <asp:DataList ID="DataListHoteisMeals" runat="server" Height="16px" RepeatColumns="1" RepeatDirection="Vertical">
                                                                            <ItemTemplate>

                                                                                <div style="border: 1px solid #e8e8e8; border-radius: 5px;">

                                                                                    <table>
                                                                                        <td style="width: 200px;">
                                                                                            <asp:Label ID="lblMealNome" runat="server" Font-Bold="True" ForeColor="#3C3C3C" Text='<%# Eval("S_meal_nome") %>' />
                                                                                        </td>
                                                                                        <td style="width: 100px;">
                                                                                            <asp:Label ID="lblSupplierMealId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMealId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("Moeda_id") %>' Visible="false"></asp:Label>
                                                                                            <asp:Label ID="lblMoedaMeal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_tarifa_total") != null ? Eval("Moeda_sigla") : "" %>' />
                                                                                            <asp:Label ID="lblValorTotalMeal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_merc_meal_tarifa_total") %>' />
                                                                                            <asp:Label ID="lblStatusMeal" runat="server" ForeColor="#B0B0FF" Text='<%# Eval("S_mercado_tarifa_status_nome") %>' />
                                                                                        </td>
                                                                                        <td style="vertical-align: top">
                                                                                            <asp:Button ID="btnAddMeals" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddMeal" CommandArgument='<%# Eval("S_merc_meal_id") %>' />
                                                                                        </td>
                                                                                    </table>

                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:DataList>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>

                                                    </div>

                                                </ItemTemplate>

                                            </asp:DataList>

                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-4">

                            <asp:UpdatePanel ID="UpdatePanelTransfers" runat="server">
                                <ContentTemplate>

                                    <div class="tabTransfers">

                                        <div class="FiltrosHoteis radius" style="width: 720px;">

                                            <div class="filtros_drop" style="width: 720px;">

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblPeriodoTransfersTXT" runat="server" Text="Período:" /><br />
                                                    <asp:TextBox ID="txtDataFromTrans" runat="server" Text="" Width="80px" />
                                                    <asp:TextBox ID="txtDataToTrans" runat="server" Text="" Width="80px" />
                                                </div>

                                                <div class="filtros_drop_into" style="width: 275px; margin-left: 35px;">
                                                    <asp:Label ID="lblCidadeTransTXT" runat="server" Text="Cidade:" /><br />

                                                    <asp:TextBox ID="txtAutoCidadeTransfer" runat="server" Text="" Width="240px" />

                                                    <asp:Button ID="btnFakeAutoCidadeTransfer" Style="display: none" runat="server" OnClick="txtAutoCidadeTransfer_TextChanged" Text="" />

                                                    <ajaxToolkit:AutoCompleteExtender
                                                        MinimumPrefixLength="1"
                                                        CompletionInterval="100"
                                                        EnableCaching="False"
                                                        TargetControlID="txtAutoCidadeTransfer"
                                                        ID="AutoCompleteExtenderCidadeTransfer" runat="server"
                                                        OnClientItemSelected="CallServerCidadeTransfer"
                                                        DelimiterCharacters="" ServiceMethod="SearchCidade"
                                                        Enabled="True">
                                                    </ajaxToolkit:AutoCompleteExtender>

                                                    <%--<asp:DropDownList ID="ddlCidadeTransFiltro" runat="server" Width="250px" AutoPostBack="True" OnSelectedIndexChanged="ddlCidadeTransFiltro_SelectedIndexChanged" />--%>
                                                </div>

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblSuppliersTransTXT" runat="server" Text="Supplier:" /><br />
                                                    <asp:DropDownList ID="ddlSuppliersTransPorCidade" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSuppliersTransPorCidade_SelectedIndexChanged" Width="190px" />
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 90px;">

                                                    <asp:Button ID="btnSearchTransfers" runat="server" Text="Procurar" CssClass="btnGeralAzul" OnClick="btnSearchTransfers_Click" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 73px; margin-left: 5px;">

                                                    <asp:RadioButtonList ID="rdoOptFileTranfers" runat="server">
                                                        <asp:ListItem Selected="True" Text="Quote" Value="0" />
                                                        <asp:ListItem Text="File" Value="1" />
                                                    </asp:RadioButtonList>

                                                </div>

                                                <div class="filtros_drop_into" style="width: 50px;">
                                                    <asp:Label ID="lblNumPaxTransfersTXT" runat="server" Text="Paxs:" /><br />
                                                    <asp:DropDownList ID="ddlNumPaxTransfers" runat="server" AutoPostBack="True" Width="50px" OnSelectedIndexChanged="ddlNumPaxTransfers_SelectedIndexChanged" />
                                                </div>

                                                <div style="width: 274px; height: 46px; margin-left: 16px; float: left;">
                                                    <asp:Label ID="lblSearchTransf" runat="server" Text="Transfer:" /><br />
                                                    <asp:TextBox ID="txtAutoTransfer" runat="server" Text="" Width="240px"></asp:TextBox>
                                                </div>

                                                <div class="filtros_drop_into" style="margin-left: 0px;">
                                                    <asp:Label ID="lblTransferPorSupplier" runat="server" Text="Transfers:" /><br />
                                                    <asp:DropDownList ID="ddlTransfersPorSupplier" runat="server" Width="190px">
                                                        <asp:ListItem Value="0" Text="Selecione..."></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>

                                            </div>

                                        </div>

                                        <div class="DataListHoteis">

                                            <asp:DataList ID="DataListTransfersSubServicos" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px" Width="793px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>'></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Font-Size="10px" ForeColor="#005E8A" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>'></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td></span><span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base de:
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label>
                                                                    </span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base para:
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_Bases_Valor_valor") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblIdMServicoTemporada" runat="server" Text='<%# Eval("IdMServico_Temporada") %>' Visible="false" />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período In:
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label>
                                                                        </span>
                                                                        <br />
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período Out:
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label>
                                                                        </span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CommandArgument="<%# Container.ItemIndex %>" CssClass="btnGeralAzul" OnCommand="BtnAddTransferFileSub" Text="Add" />
                                                                        <asp:Button ID="btnSubServAdicionados" runat="server" CommandArgument='<%# Eval("IdMServico_Temporada") %>' CssClass="btnGeralAzul" OnCommand="VerTransfSubServicosAdicionados" Text="Sub Serviços" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>

                                                    </div>

                                                </ItemTemplate>
                                            </asp:DataList>

                                            <asp:Button ID="btnFakeOpenModalSubServAdicionadosTrf" runat="server" Text="Group" Style="display: none" />

                                            <asp:Panel ID="PanelSubServAdicionadosTrf" runat="server" CssClass="ModalPopup" Style="display: none; width: auto; height: auto; overflow-x: hidden; overflow-y: auto; border-radius: 5px;" Width="410px">

                                                <asp:ImageButton ID="imgFechaModalSubServAdiconadosTrf" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                                                <asp:GridView ID="GridSubServPorTemporadaTrf" runat="server"
                                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid"
                                                    Height="16px"
                                                    Width="94px">
                                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                    <Columns>

                                                        <asp:BoundField DataField="S_nome" HeaderText="Supplier">

                                                            <ItemStyle Wrap="False" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="Base_de" HeaderText="De" />

                                                        <asp:BoundField DataField="Base_ate" HeaderText="Ate" />

                                                        <asp:BoundField DataField="MServico_Valores_Bulk_Total" HeaderText="Valor" />

                                                    </Columns>
                                                    <PagerStyle CssClass="pgr"></PagerStyle>
                                                </asp:GridView>

                                            </asp:Panel>

                                            <asp:ModalPopupExtender
                                                ID="ModalPopupExtenderSubServAddTrf"
                                                runat="server"
                                                BackgroundCssClass="ModalPopupBG"
                                                CancelControlID="imgFechaModalSubServAdiconadosTrf"
                                                DropShadow="false"
                                                Enabled="True"
                                                PopupControlID="PanelSubServAdicionadosTrf"
                                                PopupDragHandleControlID="PopupHeader"
                                                RepositionMode="RepositionOnWindowResizeAndScroll"
                                                Drag="true"
                                                TargetControlID="btnFakeOpenModalSubServAdicionadosTrf">
                                            </asp:ModalPopupExtender>

                                            <asp:DataList ID="DataListTransfers" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>' Font-Bold="True" ForeColor="#005E8A" Font-Size="Small"></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Size="10px" ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base de: 
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label></span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base para: 
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MServico_Valores_Bulk_Total") %>' ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período In: 
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label></span>
                                                                        <br />
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período Out: 
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddTranfersFile" CommandArgument="<%# Container.ItemIndex %>" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>


                                                    </div>

                                                </ItemTemplate>
                                            </asp:DataList>

                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-5">

                            <asp:UpdatePanel ID="UpdatePanelTours" runat="server">
                                <ContentTemplate>

                                    <div class="tabTours">

                                        <div class="FiltrosHoteis radius" style="width: 720px;">

                                            <div class="filtros_drop" style="width: 720px; height: 146px;">

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblPeriodoToursTXT" runat="server" Text="Período:" /><br />
                                                    <asp:TextBox ID="txtDataFromTours" runat="server" Text="" Width="80px" />
                                                    <asp:TextBox ID="txtDataToTours" runat="server" Text="" Width="80px" />
                                                </div>

                                                <div class="filtros_drop_into" style="width: 275px; margin-left: 35px;">
                                                    <asp:Label ID="lblCidadeToursCidadeTXT" runat="server" Text="Cidade:" /><br />

                                                    <asp:TextBox ID="txtAutoCidadeTours" runat="server" Text="" Width="240px" />

                                                    <asp:Button ID="btnFakeCidadeTours" Style="display: none" runat="server" OnClick="txtAutoCidadeTours_TextChanged" Text="" />

                                                    <ajaxToolkit:AutoCompleteExtender
                                                        MinimumPrefixLength="1"
                                                        CompletionInterval="100"
                                                        EnableCaching="False"
                                                        TargetControlID="txtAutoCidadeTours"
                                                        ID="AutoCompleteExtenderCidadeTours" runat="server"
                                                        OnClientItemSelected="CallServerCidadeTours"
                                                        DelimiterCharacters="" ServiceMethod="SearchCidade"
                                                        Enabled="True">
                                                    </ajaxToolkit:AutoCompleteExtender>

                                                    <%--<asp:DropDownList ID="dllCidadeToursFiltro" runat="server" AutoPostBack="True" Width="250px" OnSelectedIndexChanged="ddlCidadeToursFiltro_SelectedIndexChanged" />--%>
                                                </div>

                                                <div class="filtros_drop_into">
                                                    <asp:Label ID="lblSupplierToursTXT" runat="server" Text="Supplier:" /><br />
                                                    <asp:DropDownList ID="ddlSupplierToursFiltro" runat="server" Width="190px" AutoPostBack="True" OnSelectedIndexChanged="ddlSupplierToursFiltro_SelectedIndexChanged" />
                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 90px;">

                                                    <asp:Button ID="btnProcurarTours" runat="server" Text="Procurar" CssClass="btnGeralAzul" OnClick="btnSearchTours_Click" />

                                                </div>

                                                <div class="filtros_drop_into_btn" style="width: 73px; margin-left: 5px;">

                                                    <asp:RadioButtonList ID="rdoOptFileTours" runat="server">
                                                        <asp:ListItem Selected="True" Text="Quote" Value="0" />
                                                        <asp:ListItem Text="File" Value="1" />
                                                    </asp:RadioButtonList>

                                                </div>

                                                <div class="filtros_drop_into" style="width: 50px; height: 50px;">
                                                    <asp:Label ID="lblNumPaxsTours" runat="server" Text="Paxs:" /><br />
                                                    <asp:DropDownList ID="ddlNumPaxsTours" runat="server" Width="50px" AutoPostBack="True" OnSelectedIndexChanged="ddlNumPaxsTours_SelectedIndexChanged" />
                                                </div>

                                                <div style="width: 274px; height: 50px; margin-left: 16px; float: left;">
                                                    <asp:Label ID="lblSearchTour" runat="server" Text="Tour:" /><br />
                                                    <asp:TextBox ID="txtAutoTour" runat="server" Text="" Width="240px"></asp:TextBox>
                                                </div>

                                                <div class="filtros_drop_into" style="height: 50px;">
                                                    <asp:Label ID="lblToursNomes" runat="server" Text="Tours:" /><br />
                                                    <asp:DropDownList ID="ddlToursPorSupplier" runat="server" Width="190px">
                                                        <asp:ListItem Value="0" Text="Selecione..."></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>

                                                <div class="filtros_drop_into" style="vertical-align: bottom;">
                                                    <asp:Button ID="btnAddServExtra" runat="server" Text="Add Extra" CssClass="btnGeralAzul" OnClick="btnAddServExtra_Click" Style="margin-top: 10px;" />
                                                </div>

                                            </div>

                                        </div>

                                        <div class="BoxAddServExtra" style="display: <%=statusServExtra %>">

                                            <table>
                                                <tr>
                                                    <td style="text-align: right;">
                                                        <asp:Label ID="lblNomeServicoExtra" runat="server" Text="Serviço Extra:" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtNomeServExtra" runat="server" MaxLength="100" Width="300px" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right;">
                                                        <asp:Label ID="lblNomeSupplierServExtra" runat="server" Text="Supplier:" />
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlSuppliersServExtra" runat="server" Width="250px" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right;">
                                                        <asp:Label ID="lblTipoServicoExtra" runat="server" Text="Tipo Serviço:" />
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlTipoServicoExtra" runat="server"></asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: right; vertical-align: bottom;">
                                                        <asp:Button ID="btnCadastrarServExtra" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="BtnCadastrarServExtra" />
                                                    </td>
                                                </tr>
                                            </table>

                                        </div>

                                        <div class="DataListHoteis radius">

                                            <asp:DataList ID="DataListToursSubServicos" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>' Font-Bold="True" ForeColor="#005E8A" Font-Size="Small"></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Size="10px" ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base de: 
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label></span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base para: 
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_Bases_Valor_valor") %>' ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblIdMServicoTemporada" runat="server" Text='<%# Eval("IdMServico_Temporada") %>' Visible="false" />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período In: 
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label></span>
                                                                        <br />
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período Out: 
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddToursFileSub" CommandArgument="<%# Container.ItemIndex %>" />

                                                                        <asp:Button ID="btnSubServAdicionados" runat="server" CssClass="btnGeralAzul" Text="Sub Serviços" OnCommand="VerToursSubServicosAdicionados" CommandArgument='<%# Eval("IdMServico_Temporada") %>' />
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>
                                                </ItemTemplate>
                                            </asp:DataList>

                                            <asp:Button ID="btnFakeOpenModalSubServAdicionados" runat="server" Text="Group" Style="display: none" />

                                            <asp:Panel ID="PanelSubServAdicionados" runat="server" CssClass="ModalPopup" Style="display: none; width: auto; height: auto; overflow-x: hidden; overflow-y: auto; border-radius: 5px;" Width="410px">

                                                <asp:ImageButton ID="imgFechaModalSubServAdiconados" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                                                <asp:GridView ID="GridSubServPorTemporada" runat="server"
                                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid"
                                                    Height="16px"
                                                    Width="94px">
                                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                    <Columns>

                                                        <asp:BoundField DataField="S_nome" HeaderText="Supplier">

                                                            <ItemStyle Wrap="False" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="Base_de" HeaderText="De" />

                                                        <asp:BoundField DataField="Base_ate" HeaderText="Ate" />

                                                        <asp:BoundField DataField="MServico_Valores_Bulk_Total" HeaderText="Valor" />

                                                    </Columns>
                                                    <PagerStyle CssClass="pgr"></PagerStyle>
                                                </asp:GridView>

                                            </asp:Panel>

                                            <asp:ModalPopupExtender
                                                ID="ModalPopupExtenderSubServAdicionados"
                                                runat="server"
                                                BackgroundCssClass="ModalPopupBG"
                                                CancelControlID="imgFechaModalSubServAdiconados"
                                                DropShadow="false"
                                                Enabled="True"
                                                PopupControlID="PanelSubServAdicionados"
                                                PopupDragHandleControlID="PopupHeader"
                                                RepositionMode="RepositionOnWindowResizeAndScroll"
                                                Drag="true"
                                                TargetControlID="btnFakeOpenModalSubServAdicionados">
                                            </asp:ModalPopupExtender>

                                            <asp:DataList ID="DataListTours" runat="server" RepeatDirection="Vertical" RepeatColumns="1" Height="85px">
                                                <ItemTemplate>

                                                    <div class="infos" style="height: 80px;">

                                                        <div class="TituloHotelDL" style="height: 62px;">

                                                            <table>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:Label ID="lblSuplID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_id") %>' Font-Bold="True" Font-Size="Small" ForeColor="#005E8A" Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblTituloTransfer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Servicos_Nome") %>' Font-Bold="True" ForeColor="#005E8A" Font-Size="Small"></asp:Label>
                                                                        <asp:Label ID="lblSupplierNome" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "S_nome") %>' Font-Size="10px" ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base de: 
                                                                        <asp:Label ID="lblBaseDe" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_de") %>'></asp:Label></span>
                                                                        <span style="font-size: small; font-family: Arial, Helvetica, sans-serif; color: #666;">Base para: 
                                                                        <asp:Label ID="lblBaseAte" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Base_Ate") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblMoedaId" runat="server" ForeColor="#B0B0FF" Text='<%# DataBinder.Eval(Container.DataItem,"Moeda_id") %>' Visible="false"></asp:Label>
                                                                        <asp:Label ID="lblMoeda0" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Moeda_sigla") %>' Font-Bold="True" ForeColor="#005E8A"></asp:Label>
                                                                        <asp:Label ID="lblTarifaTotal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MServico_Valores_Bulk_Total") %>' ForeColor="#005E8A"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>

                                                        </div>

                                                        <div style="float: left; height: 40px; width: 179px;">

                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período In: 
                                                                        <asp:Label ID="lblFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataFrom")) %>'></asp:Label></span>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Período Out: 
                                                                        <asp:Label ID="lblTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", DataBinder.Eval(Container.DataItem, "MServico_DataTo")) %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>
                                                                <%--<tr>
                                                                    <td>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Tipo Serviço: 
                                                                        <asp:Label ID="lblTipoServico" runat="server" Font-Bold="true" Text='<%# DataBinder.Eval(Container.DataItem, "Tipo_Nome") %>'></asp:Label></span>
                                                                        <span style="font-size: smaller; font-family: Arial, Helvetica, sans-serif; color: #666;">Categoria: 
                                                                        <asp:Label ID="LalblTipoServicoCateg" runat="server" Font-Bold="true" Text='<%# DataBinder.Eval(Container.DataItem, "Tipo_categ_nome") %>'></asp:Label></span>
                                                                    </td>
                                                                </tr>--%>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Button ID="btnAddTransferFile" runat="server" CssClass="btnGeralAzul" Text="Add" OnCommand="BtnAddToursFile" CommandArgument="<%# Container.ItemIndex %>" />
                                                                    </td>
                                                                </tr>
                                                            </table>


                                                        </div>
                                                </ItemTemplate>
                                            </asp:DataList>

                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-6" style="display: none">

                            <asp:UpdatePanel ID="UpdatePanelCarrinhoFile" runat="server">
                                <ContentTemplate>


                                    <div class="DataListCarrinhoFile">

                                        <table style="border-collapse: collapse; width: 1080px;">
                                            <tr style="padding: 10px;">
                                                <asp:GridView ID="GridFileCarrinhoHoteis" OnDataBound="GridFileCarrinhoHoteis_DataBound" AutoGenerateColumns="False" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 5px; margin-left: 0px;" Width="1080px" EmptyDataText="Não existe hoteis adicionados.">

                                                    <AlternatingRowStyle BackColor="White" />

                                                    <Columns>

                                                        <asp:TemplateField HeaderText="Hoteis">
                                                            <ItemTemplate>
                                                                <span class="Description_Grids_Hoteis">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text='<%# Eval("NomeSupplier") %>' />

                                                                    <asp:Label ID="lblMealNome" runat="server" Text='<%# string.Format("{0} {1}", Eval("S_meal_nome"), Eval("S_meal_status")) %>' Style="font-size: 10px;" />
                                                                    <asp:Label ID="lblMealStatus" runat="server" Text='<%# Eval("S_meal_status") %>' Style="display: none;" />
                                                                    <br />
                                                                </span>

                                                                <span style="color: blue; font-size: 11px; font-weight: bold;">
                                                                    <%# Eval("Categoria") %> - <%# Eval("Room") %><br />
                                                                </span>

                                                                <asp:LinkButton ID="lnkDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Font-Overline="False" OnCommand="lnkDataFrom_Command" CommandArgument='<%# string.Format("{0}/{1}/{2}", "hotel", Eval("File_Tarifas_id"), Eval("Ordem")) %>' />

                                                                <asp:Label ID="lblDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Style="display: none;" />
                                                                - 
                                                                <asp:Label ID="lblDataTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataTo")) %>' Font-Size="11px" />

                                                                <asp:Label ID="lblOrdem" runat="server" Text='<%# Eval("Ordem") %>' Style="display: none;" />

                                                                <br />

                                                                <span style="font-family: Arial; font-size: 10px;">NrNts:
                                                                </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNumNoites" Text='<%# Eval("NumNoites") %>' runat="server" />
                                                                </span>
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Pacote:
                                                                </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomePacote" Text='<%# Eval("NomePacote") %>' runat="server" />
                                                                </span>
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Cidade: </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomeCidade" Text="" runat="server" />
                                                                </span>


                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" Width="180px" Font-Size="Medium" />
                                                            <ItemStyle Width="180px" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Paxs">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgFlights" runat="server" OnCommand="OpenFlightsHoteis" CommandArgument='<%# Eval("File_Tarifas_id") %>' ToolTip="Flights" />
                                                                <asp:ImageButton ID="imgPaxs" runat="server" ImageUrl="~/images/Icones/people.png" ToolTip="Paxs" OnCommand="OpenPaxsHoteis" CommandArgument='<%# Eval("File_Tarifas_id") %>' />

                                                                <asp:TextBox ID="txtQtdTarifas" Width="25px" runat="server" Text='<%# Eval("QtdTarifa") %>' Enabled="false" />
                                                                <asp:Label ID="lblPayingPax" runat="server" Text='<%# Eval("Paying_Pax") %>' Visible="false" />

                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTarifa" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTarifa_Command" CommandArgument='<%# Eval("File_Tarifas_id") %>' ToolTip="Atualizar item" />
                                                                <asp:Label ID="IdFileTarifa" Text='<%# Eval("File_Tarifas_id") %>' runat="server" Visible="false" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle Width="100px" Wrap="False" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Stat">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Trocar status" OnCommand="AtualizarStatusHoteis" OnClientClick="return confirm('Deseja trocar o status desse item?');" CommandArgument='<%# string.Format("{0},{1}", Eval("File_Tarifas_id"), Eval("Status")) %>' />
                                                                <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net/Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtValorTarifas" Columns="5" runat="server" Text='<%# Eval("ValorTarifa") %>' />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkup" runat="server" Width="40px" Text='<%# Eval("Markup") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span><br />
                                                                <asp:TextBox ID="txtDesconto" runat="server" Width="40px" Text='<%# Eval("Desconto") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>

                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVendaNet" runat="server" Columns="5" Text="" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">

                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkupNet" runat="server" Width="40px" Text='<%# Eval("MarkupNet") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span>
                                                                <asp:TextBox ID="txtDescontoNet" runat="server" Width="40px" Text='<%# Eval("DescontoNet") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Venda">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVenda" runat="server" Columns="5" Text="" />
                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTarifaVenda" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTarifaVenda_Command" CommandArgument='<%# Eval("File_Tarifas_id") %>' ToolTip="Atualizar Venda" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Total">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:Label ID="lblValorTotalTarifas" runat="server" Text="" />
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Del">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="ExluirFileCarrinho" ToolTip="Excluir"
                                                                    runat="server" CommandArgument='<%# Eval("File_Tarifas_id") %>'
                                                                    OnCommand="ExcluirFileCarrinho"
                                                                    ImageUrl="~/images/Icones/delete.png" />

                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                    </Columns>

                                                    <HeaderStyle BackColor="#88BFB7" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <RowStyle BackColor="#EFF3FB" />

                                                </asp:GridView>
                                            </tr>
                                            <tr style="padding: 10px;">
                                                <asp:GridView ID="GridFileCarrinhoTransfers" OnDataBound="GridFileCarrinhoTranfers_DataBound" OnRowCreated="GridFileCarrinhoTransfers_RowCreated" AutoGenerateColumns="False" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 5px; margin-left: 0px;" Width="1080px" EmptyDataText="Não existe serviços adicionados.">

                                                    <AlternatingRowStyle BackColor="White" />

                                                    <Columns>

                                                        <asp:TemplateField HeaderText="Serviços">
                                                            <ItemTemplate>
                                                                
                                                                <span class="Description_Grids_Trf">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text='<%# Eval("NomeSupplier") %>' /><br />
                                                                </span>

                                                                <span style="color: blue; font-size: 11px; font-weight: bold;">
                                                                    <asp:Label ID="lblNomeTrf" runat="server" Text='<%# Eval("TituloTransf") %>' />
                                                                    <br />
                                                                </span>

                                                                <asp:LinkButton ID="lnkDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Font-Overline="False" OnCommand="lnkDataFrom_Command" CommandArgument='<%# string.Format("{0}/{1}/{2}", "transfer", Eval("File_Transf_id"), Eval("Ordem")) %>' />

                                                                <asp:Label ID="lblDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Style="display: none;" />
                                                                - 
                                                            <asp:Label ID="lblDataTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataTo")) %>' Font-Size="11px" />
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Cidade: </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomeCidade" Text="" runat="server" />
                                                                </span>

                                                                <asp:Label ID="lblOrdem" runat="server" Text='<%# Eval("Ordem") %>' Style="display: none;" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" Width="180px" Font-Size="Medium" />
                                                            <ItemStyle Width="180px" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Paxs">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgFlights" runat="server" OnCommand="OpenFlightsServico" CommandArgument='<%# Eval("File_Transf_id") %>' ToolTip="Flights" />
                                                                <asp:ImageButton ID="imgPaxs" runat="server" ImageUrl="~/images/Icones/people.png" ToolTip="Paxs" OnCommand="OpenPaxsServicos" CommandArgument='<%# Eval("File_Transf_id") %>' />

                                                                <asp:TextBox ID="txtQtdTarifas" Width="25px" runat="server" Text='<%# Eval("QtdTarifa") %>' Enabled="false" />
                                                                <asp:Label ID="lblPayingPax" runat="server" Text='<%# Eval("Paying_Pax") %>' Visible="false" />

                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTarifa" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTransfers_Command" CommandArgument='<%# Eval("File_Transf_id") %>' />
                                                                <asp:Label ID="IdFileTarifa" Text='<%# Eval("File_Transf_id") %>' runat="server" Visible="false" />
                                                                <asp:Label ID="lblTrfTours" Text='<%# Eval("Trf_Tours") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle Width="100px" Wrap="False" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Stat">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Trocar status" OnCommand="AtualizarStatusServicos" OnClientClick="return confirm('Deseja trocar o status desse item?');" CommandArgument='<%# string.Format("{0},{1}", Eval("File_Transf_id"), Eval("Status")) %>' />
                                                                <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net/Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtValorTarifas" Columns="5" runat="server" Text='<%# Eval("ValorTarifa") %>' />
                                                                <asp:Label ID="lblSubServico" runat="server" Visible="false" Text='<%# Eval("SubServico") %>' />
                                                                <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Sub Serviços" OnCommand="OpenSubServicos" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("File_Transf_id"), Eval("DataFrom"), Eval("DataTo"), Eval("Paying_Pax")) %>' />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" Wrap="True" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkup" runat="server" Width="40px" Text='<%# Eval("Markup") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span><br />
                                                                <asp:TextBox ID="txtDesconto" runat="server" Width="40px" Text='<%# Eval("Desconto") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVendaNet" runat="server" Columns="5" Text="" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkupNet" runat="server" Width="40px" Text='<%# Eval("MarkupNet") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span>
                                                                <asp:TextBox ID="txtDescontoNet" runat="server" Width="40px" Text='<%# Eval("DescontoNet") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                <br />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Venda">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVenda" runat="server" Columns="5" Text="" />
                                                                <asp:ImageButton ID="imgAtualizaCarrinhoTransfersVenda" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoTransfersVenda_Command" CommandArgument='<%# Eval("File_Transf_id") %>' ToolTip="Atualizar Venda" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Total">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:Label ID="lblValorTotalTarifas" runat="server" Text="" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Del">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="ExluirFileCarrinhoTransf" ToolTip="Excluir"
                                                                    runat="server" CommandArgument='<%# Eval("File_Transf_id") %>'
                                                                    OnCommand="ExluirFileCarrinhoTransf"
                                                                    ImageUrl="~/images/Icones/delete.png" />

                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                    </Columns>

                                                    <HeaderStyle BackColor="#88BFB7" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <RowStyle BackColor="#EFF3FB" />

                                                </asp:GridView>
                                            </tr>
                                            <tr style="padding: 10px;">
                                                <asp:GridView ID="GridFileCarrinhoExtras" OnDataBound="GridFileCarrinhoExtras_DataBound" AutoGenerateColumns="False" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 5px; margin-left: 0px;" Width="1080px" EmptyDataText="Não existe serviços extras adicionados.">

                                                    <AlternatingRowStyle BackColor="White" />

                                                    <Columns>

                                                        <asp:TemplateField HeaderText="Extras">
                                                            <ItemTemplate>

                                                                <span class="Description_Grids_Trf">
                                                                    <asp:Label ID="lblNomeSupplier" runat="server" Text='<%# Eval("NomeSupplier") %>' /><br />
                                                                </span>

                                                                <span style="color: blue; font-size: 11px; font-weight: bold;">
                                                                    <%# Eval("File_ServExtra_nome") %>
                                                                    <br />
                                                                </span>

                                                                <asp:LinkButton ID="lnkDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Font-Overline="False" OnCommand="lnkDataFrom_Command" CommandArgument='<%# string.Format("{0}/{1}/{2}", "extra", Eval("File_ServExtra_id"), Eval("Ordem")) %>' />

                                                                <asp:Label ID="lblDataFrom" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataFrom")) %>' Font-Size="11px" Style="display: none;" />
                                                                - 
                                                            <asp:Label ID="lblDataTo" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("DataTo")) %>' Font-Size="11px" />
                                                                <br />
                                                                <span style="font-family: Arial; font-size: 10px;">Cidade: </span>
                                                                <span style="color: blue; font-size: 9px;">
                                                                    <asp:Label ID="lblNomeCidade" Text="" runat="server" />
                                                                </span>

                                                                <asp:Label ID="lblOrdem" runat="server" Text='<%# Eval("Ordem") %>' Style="display: none;" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" Width="180px" Font-Size="Medium" />
                                                            <ItemStyle Width="180px" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Paxs">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgFlights" runat="server" ToolTip="Flights" OnCommand="OpenFlightsServExtra" CommandArgument='<%# Eval("File_ServExtra_id") %>' />
                                                                <asp:ImageButton ID="imgPaxs" runat="server" ImageUrl="~/images/Icones/people.png" ToolTip="Paxs" OnCommand="OpenPaxsServExtras" CommandArgument='<%# Eval("File_ServExtra_id") %>' />

                                                                <asp:TextBox ID="txtQtdTarifas" Width="25px" runat="server" Text='<%# Eval("Qtd_ServExtr") %>' Enabled="false" />
                                                                <asp:Label ID="lblPayingPax" runat="server" Text='<%# Eval("Paying_Pax") %>' Visible="false" />

                                                                <asp:ImageButton ID="imgAtualizaCarrinhoServExtra" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoServExtra_Command" CommandArgument='<%# Eval("File_ServExtra_id") %>' />
                                                                <asp:Label ID="IdFileServExtra" Text='<%# Eval("File_ServExtra_id") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle Width="100px" Wrap="False" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Stat">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" runat="server" ToolTip="Trocar status" OnCommand="AtualizarStatusServicosExtras" OnClientClick="return confirm('Deseja trocar o status desse item?');" CommandArgument='<%# string.Format("{0},{1}", Eval("File_ServExtra_id"), Eval("Status")) %>' />
                                                                <asp:Label ID="lblStatus" Text='<%# Eval("Status") %>' runat="server" Visible="false" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net/Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtValorTarifas" Columns="5" runat="server" Text='<%# Eval("ValorTarifa") %>' />

                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkup" runat="server" Width="40px" Text='<%# Eval("Markup") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span><br />
                                                                <asp:TextBox ID="txtDesconto" runat="server" Width="40px" Text='<%# Eval("Desconto") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Net">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVendaNet" runat="server" Columns="5" Text="" />

                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Markup/Desc">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtMarkupNet" runat="server" Width="40px" Text='<%# Eval("MarkupNet") %>' MaxLength="5" ToolTip="Markup" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">M</span>
                                                                <asp:TextBox ID="txtDescontoNet" runat="server" Width="40px" Text='<%# Eval("DescontoNet") %>' MaxLength="5" ToolTip="Desconto" /><span style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #CC0000">D</span>
                                                                <br />
                                                            </ItemTemplate>

                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Venda">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:TextBox ID="txtVenda" runat="server" Columns="5" Text="" />
                                                                <asp:ImageButton ID="imgAtualizaCarrinhoServExtraVenda" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                                    OnCommand="imgAtualizaCarrinhoServExtraVenda_Command" CommandArgument='<%# Eval("File_ServExtra_id") %>' ToolTip="Atualizar Venda" />
                                                            </ItemTemplate>

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />

                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Total">
                                                            <ItemTemplate>
                                                                <span style="font-size: 9px;">
                                                                    <%# Eval("Mod") %>
                                                                </span>
                                                                <asp:Label ID="lblValorTotalTarifas" runat="server" Text="" />

                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Del">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="ExluirFileCarrinhoServExtra" ToolTip="Excluir"
                                                                    runat="server" CommandArgument='<%# Eval("File_ServExtra_id") %>'
                                                                    OnCommand="ExluirFileCarrinhoExtra"
                                                                    ImageUrl="~/images/Icones/delete.png" />

                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>

                                                    </Columns>

                                                    <HeaderStyle BackColor="#88BFB7" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <RowStyle BackColor="#EFF3FB" />

                                                </asp:GridView>
                                            </tr>
                                        </table>

                                        <br />

                                        <div class="TotaisCarrinho">
                                            <table>
                                                <tr>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <span style="font-size: 15px">Total Hotel</span>
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelCarrinho" runat="server" Text="" CssClass="valoresTotaisCarrinho" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelCarrinhoVenda" runat="server" Text="" CssClass="valoresTotaisCarrinhoVenda" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalHotelMarkup" runat="server" Text="" CssClass="valoresTotaisCarrinhoMarkup" />%
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <span style="font-size: 15px">Total Serviços</span>
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinho" runat="server" Text="" CssClass="valoresTotaisCarrinho" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinhoVenda" runat="server" Text="" CssClass="valoresTotaisCarrinhoVenda" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorTotalServicosCarrinhoMarkup" runat="server" Text="" CssClass="valoresTotaisCarrinhoMarkup" />%
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <span style="font-size: 15px">Grand Total</span>
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalCarrinho" runat="server" Text="" CssClass="valoresTotaisCarrinho" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalCarrinhoVenda" runat="server" Text="" CssClass="valoresTotaisCarrinhoVenda" />
                                                    </td>
                                                    <td style="padding: 5px; text-align: right;">
                                                        <asp:Label ID="lblValorGrandTotalCarrinhoMarkup" runat="server" Text="" CssClass="valoresTotaisCarrinhoMarkup" />%
                                                    </td>
                                                </tr>

                                            </table>
                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-7">

                            <script type="text/javascript">
                                function OpenInfos() {

                                    var e = document.getElementById("ddlTipoQuote");
                                    var strUser = e.options[e.selectedIndex].value;

                                    var f = document.getElementById("ddlFotoQuote");
                                    var foto = f.options[f.selectedIndex].value;

                                    var lblVal = document.getElementById('lblQA').innerHTML;
                                    //alert(lblVal);

                                    var home = '/Externo4Star/QuoteGeralNew.aspx?type=' + strUser + '&foto=' + foto + '&optQuote=' + lblVal + '&Code=';
                                    javascript: window.open(home);
                                }
                            </script>

                            <asp:UpdatePanel ID="UpdatePanelQuote" runat="server">
                                <ContentTemplate>

                                    <div class="tabQuote">

                                        <asp:Button ID="btnCopiarFile" runat="server" Text="Copiar File" CssClass="btnGeralAzul" OnClick="btnCopiarFile_Click" />

                                        <%--<asp:Button ID="btnPrintQuote" runat="server" Text="Print Quote" CssClass="btnGeralAzul" OnClientClick="OpenInfos" />--%>
                                        <input id="btnPrintQuote" class="btnGeralAzul" value="Print Quote" onclick="OpenInfos()" type="button" />
                                        Tipo:
                                    <asp:DropDownList ID="ddlTipoQuote" runat="server">
                                        <asp:ListItem Selected="True" Value="0" Text="Package" />
                                        <asp:ListItem Value="1" Text="Breakdown" />
                                    </asp:DropDownList>
                                        Foto:
                                    <asp:DropDownList ID="ddlFotoQuote" runat="server">
                                        <asp:ListItem Selected="True" Value="0" Text="Sim" />
                                        <asp:ListItem Value="1" Text="Não" />
                                    </asp:DropDownList>
										<br />
                                        <br />
                                        <asp:Button runat="server" ID="btnAddTourMap" Text="Add Tour Map" CssClass="btnGeralAzul"
                                            OnClientClick="AbrirPopUp('AddTourMap.aspx', 'Fotos', '820', '460')" />

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>


                        </div>

                        <div id="tabs-8">

                            <asp:UpdatePanel ID="UpdatePanelPrint" runat="server">
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnDownload" />
                                </Triggers>
                                <ContentTemplate>

                                    <div class="ReportsQuote">

                                        <asp:DropDownList ID="ddlTipoRpt" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTipoRpt_SelectedIndexChanged">

                                            <asp:ListItem Value="1" Text="Service Confirmation" />
                                            <asp:ListItem Value="2" Text="Invoice" />
                                            <asp:ListItem Value="3" Text="Voucher" />
                                            <asp:ListItem Value="4" Text="Mapa Serviços" />
											<asp:ListItem Value="5" Text="File Print" />

                                        </asp:DropDownList>

                                        <asp:DropDownList ID="ddlFormato" runat="server">

                                            <asp:ListItem Value="1" Text="PDF" />
                                            <asp:ListItem Value="2" Text="Word" />
                                            <asp:ListItem Value="3" Text="Excel" />

                                        </asp:DropDownList>

                                         <asp:DropDownList ID="ddlPais" runat="server" Visible="false">
                                        </asp:DropDownList>

                                        <asp:Button ID="btnDownload" runat="server" Text="Download" OnClick="EmitirRelatorio" />

                                        <asp:TextBox runat="server" ID="datainicioRelatorioMapaServicos" />
                                        <asp:TextBox runat="server" ID="dataFimRelatorioMapaServicos" />


                                        <%# Eval("Categoria") %>

                                        <asp:GridView ID="gridHistoricoInvoice" runat="server" AlternatingRowStyle-CssClass="alt" AutoGenerateColumns="False" CssClass="mGrid" GridLines="None" PagerStyle-CssClass="pgr">
                                            <Columns>

                                                <asp:BoundField DataField="Invoice_id" HeaderText="Invoice" />
                                                <asp:BoundField DataField="DataEmissao" HeaderText="Data" />
                                                <asp:BoundField DataField="Grand_Total" HeaderText="Total" />

                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <a href="<%# Eval("CaminhoPDF") %>" target="_blank">Download
                                                        </a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                            </Columns>
                                        </asp:GridView>
                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div id="tabs-9">

                            <asp:UpdatePanel ID="UpdatePanelEmails" runat="server">
                                <ContentTemplate>

                                    <div class="Emails">

                                        <div class="Emails_filtro">

                                            <asp:Label ID="lblEnviarEmailParaTXT" runat="server" Text="Envio: " />
                                            <asp:DropDownList ID="ddlTipoEnvioEmail" runat="server" OnSelectedIndexChanged="ddlTipoEnvioEmail_SelectedIndexChanged" AutoPostBack="true">
                                                <asp:ListItem Selected="True" Value="0" Text="Selecione" />
                                                <asp:ListItem Value="1" Text="Hotel" />
                                                <asp:ListItem Value="2" Text="Servicos" />
                                            </asp:DropDownList>

                                            <asp:Label ID="lblSupplierEmailsTXT" runat="server" Text="Supplier: " />
                                            <asp:DropDownList ID="ddlSupplierEmails" OnSelectedIndexChanged="ddlSupplierEmails_SelectedIndexChanged" AutoPostBack="true" runat="server" />
                                        </div>

                                        <div class="Emails_MontaEmail">

                                            <cc1:Editor ID="EditorEmail" NoUnicode="true" runat="server" Visible="false" />

                                        </div>

                                        <div class="Emails_btns">
                                            <asp:Label ID="lblEmailNovo" runat="server" Text="Email de envio: " Visible="false" /><asp:TextBox ID="txtEmailNovo" runat="server" MaxLength="200" Width="300" Visible="false" /><br />
                                            <asp:Button ID="btnEnviarEmail" runat="server" Visible="false" Text="Enviar Email" CssClass="btnGeralAzul" OnClick="btnEnviarEmail_Click" />
                                        </div>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                    </div>

                </div>

            </asp:Panel>

            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>

                    <asp:Button ID="btnFakeGeraFile" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderGeraFile" runat="server" PopupControlID="PanelGeraFile" TargetControlID="btnFakeGeraFile"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelGeraFile" CssClass="ModalPopup" Width="400px" Style="border-radius: 5px; height: auto; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharGerarFile" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Gerar File</legend>

                            Selecione a base que irá gerar o file.
                            <table>
                                <tr>
                                    <td style="vertical-align: top;">

                                        <asp:GridView ID="GridColunasFile" runat="server"
                                            AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe coluna cadastrada."
                                            Height="16px" Width="94px">
                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                            <Columns>

                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:RadioButton ID="rdoSelectBase" runat="server" onclick="RadioCheck(this);" />
                                                        <%--<asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("Quotation_Id")%>' />--%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:BoundField DataField="Ranges_de" HeaderText="De" />
                                                <asp:BoundField DataField="Ranges_ate" HeaderText="Até" />

                                            </Columns>
                                        </asp:GridView>

                                    </td>
                                    <td style="vertical-align: top;">

                                        <asp:GridView ID="GridRooms" runat="server" GridLines="None" CssClass="mGrid" AutoGenerateColumns="false" EmptyDataText="Não possui rooms.">
                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                            <Columns>

                                                <asp:BoundField DataField="room" HeaderText="Room" />

                                                <asp:TemplateField HeaderText="Paxs">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtQtd" runat="server" MaxLength="5" Width="50px" OnTextChanged="txtQtd_TextChanged" AutoPostBack="true" TabIndex="1" />
                                                        <asp:TextBox ID="roomsBases" runat="server" Text='<%# Eval("room") %>' Style="display: none"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Rooms">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblqtdRooms" runat="server" Text="" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                            </Columns>
                                        </asp:GridView>

                                    </td>
                                    <td style="vertical-align: top;">

                                        <fieldset>
                                            Paxs Serviço:
                                            <asp:TextBox ID="txtQtdPaxs" runat="server" Text="" MaxLength="3" Width="50px" />

                                        </fieldset>

                                    </td>
                                </tr>
                            </table>

                            <br />
                            <asp:Button ID="btnAddSalvarFile" runat="server" Text="Gerar File" CssClass="btnGeralAzul" OnClick="btnAddSalvarFile_Click" />

                        </fieldset>

                    </asp:Panel>

                    <asp:Button ID="btnFakeFlights" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderFlights" runat="server" PopupControlID="PanelFlights" TargetControlID="btnFakeFlights"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelFlights" CssClass="ModalPopup" Width="400px" Height="350px" Style="border-radius: 5px; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharPopFlights" ToolTip="Close" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Flights</legend>
                            <table>
                                <tr>
                                    <td>
                                        <asp:RadioButtonList ID="rdoInOutFlights" runat="server">
                                            <asp:ListItem Selected="True" Value="In" Text="Arrives" />
                                            <asp:ListItem Value="To" Text="Departs" />
                                        </asp:RadioButtonList>
                                    </td>
                                    <td colspan="2">
                                        <asp:Label runat="server" ID="lblConfirmationNumber" Text="Confirmation Number"></asp:Label>
                                        <br />
                                        <asp:TextBox runat="server" ID="txtConfirmationNumber"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCidadeFlights" runat="server" Text="City" />
                                        <asp:LinkButton ID="lnkEscreverCidade" runat="server" Text="Add" OnClick="lnkEscreverCidade_Click" />
                                        <asp:LinkButton ID="lnkEscreverCidadeCancelar" runat="server" Text="Cancel" Visible="false" OnClick="lnkEscreverCidadeCancelar_Click" />
                                        <br />
                                        <asp:DropDownList ID="ddlCidadeFlights" runat="server" Width="100px" />
                                        <asp:TextBox ID="txtCidadeFlights" runat="server" MaxLength="50" Visible="false" Width="80px" />
                                    </td>
                                    <td colspan="2">
                                        <asp:Label ID="lblFlight" runat="server" Text="Flight" /><br />
                                        <asp:TextBox ID="txtFlight" runat="server" MaxLength="50" Width="200px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblHouraFlight" runat="server" Text="Time" /><br />
                                        <asp:TextBox ID="txtHoraFlight" runat="server" MaxLength="50" Width="80px" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblPickUpFlights" runat="server" Text="Pick Up" /><br />
                                        <asp:TextBox ID="txtPickUpFlight" runat="server" MaxLength="50" Width="80px" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDropOffFlights" runat="server" Text="Drop Off" /><br />
                                        <asp:TextBox ID="txtDropOffFlight" runat="server" MaxLength="50" Width="150px" />
                                    </td>
                                </tr>
                            </table>

                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblRemarksFligths" runat="server" Text="Remarks" /><br />
                                        <asp:TextBox ID="txtRemarksFlight" runat="server" MaxLength="100" Width="331px" TextMode="MultiLine" Height="85px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnSalvarFlight" runat="server" Text="Save" Visible="false" CssClass="btnGeralAzul" OnClick="btnSalvarFlight_Click" />
                                        <asp:Button ID="btnSalvarFlightNew" runat="server" Text="Save" Visible="false" CssClass="btnGeralAzul" OnClick="btnSalvarFlightNew_Click" />
                                    </td>
                                </tr>
                            </table>

                        </fieldset>

                    </asp:Panel>

                    <asp:Button ID="btnFakePaxs" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderPaxs" runat="server" PopupControlID="PanelPaxs" TargetControlID="btnFakePaxs"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelPaxs" CssClass="ModalPopup" Width="258px" Height="200px" Style="border-radius: 5px; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharPopPaxs" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Paxs</legend>

                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblPaxsPop" runat="server" Text="Paxs" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPaxsPop" runat="server" Width="80px" MaxLength="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblPayingPaxPop" runat="server" Text="Paying Pax" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPayingPaxPop" runat="server" Width="80px" MaxLength="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblSuppPayingPaxPop" runat="server" Text="Supplier Paying Pax" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSupplierPayingPaxPop" runat="server" Width="80px" MaxLength="10" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnSalvarPaxsPop" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvarPaxsPop_Click" />
                                    </td>
                                </tr>
                            </table>

                        </fieldset>

                    </asp:Panel>

                    <asp:Button ID="btnFakeTarifasGrids" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderTarifasGrids" runat="server" PopupControlID="PanelTarifasGrids" TargetControlID="btnFakeTarifasGrids"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelTarifasGrids" CssClass="ModalPopup" Width="600px" Style="height: auto; border-radius: 5px; display: none;" runat="server">

                        <asp:ImageButton ID="imgFecharTarifasGrids" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <fieldset>
                            <legend>Tarifas
                                <asp:Label ID="lblMoedaTarifas" runat="server" Text="" /></legend>
                            <table>
                                <tr>
                                    <td class="tdPopTarifas">Paying Pax
                                        <br />
                                        <asp:TextBox ID="txtPaxsTarifas" runat="server" Text="" Width="20px" Style="padding-left: 5px;" />
                                    </td>
                                    <td  class="tdPopTarifas">Supplier Paying Pax
                                        <br />
                                        <asp:TextBox ID="txtSupplierPayPaxs" runat="server" Text="" Width="20px" Style="padding-left: 5px;" />
                                    </td>
                                    <td class="tdPopTarifas">Paxs
                                        <br />
                                        <asp:TextBox ID="txtPaxs" runat="server" Text="" Width="20px" Style="padding-left: 5px;" />
                                    </td>
                                </tr>
                                <tr>                                    
                                    <td class="tdPopTarifas">Net <!--/Net-->
                                        <br />
                                        <asp:TextBox ID="txtNetNetTarifas" runat="server" Text="" Width="50px" />
                                        <asp:Label ID="lblQtdNoitesPopUp" runat="server" Text="" />
                                        <asp:ImageButton ID="imgAtualizaTarifas" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                            ToolTip="Atualizar Tarifas" Height="18px" Width="20px" OnClick="imgAtualizaTarifas_Click" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="tdPopTarifas">Markup
                                        <br />
                                        <asp:TextBox ID="txtMarkupTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td class="tdPopTarifas">Desconto
                                        <br />
                                        <asp:TextBox ID="txtDescontoTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td class="tdPopTarifas">MarkupNet
                                        <br />
                                        <asp:TextBox ID="txtMarkupNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td class="tdPopTarifas">DescontoNet
                                        <br />
                                        <asp:TextBox ID="txtDescontoNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="tdPopTarifas">Net
                                        <br />
                                        <asp:TextBox ID="txtNetTarifas" runat="server" Text="" Width="50px" />
                                    </td>
                                    <td class="tdPopTarifas">Venda
                                        <br />
                                        <asp:TextBox ID="txtVendaTarifas" runat="server" Text="" Width="50px" />
                                        <asp:ImageButton ID="imgAtualizaVendaTarifas" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                            ToolTip="Atualizar Venda" Height="18px" Width="20px" OnClick="imgAtualizaTarifasVenda_Click"
                                            OnClientClick="return confirm('Deseja recalcular esse markup. Confirma?');" />
                                    </td>
                                    <td class="tdPopTarifas">Total
                                        <br />
                                        <asp:Label ID="lbltotalTarifas" runat="server" Text="" />
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="imgEditSubServico" runat="server" Visible="false" ImageUrl="~/images/Icones/edit.png" ToolTip="Sub Serviços" OnClick="OpenSubServicosNewFilePorBase" />
                                    </td>
                                </tr>
                            </table>

                        </fieldset>


                    </asp:Panel>

                    <asp:Button ID="btnFakeAddDatasCarrinho" runat="server" Text="Button" Style="display: none" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddDatasCarrinho" runat="server"
                        PopupControlID="PanelAddDatasCarrinho" TargetControlID="btnFakeAddDatasCarrinho"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddDatasCarrinho" CssClass="ModalPopup" Width="153px" Height="129px" Style="border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharAddDatasCarrinho" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />


                        <table>
                            <tr>
                                <td>Num de Dias:
                                    <br />
                                    <asp:TextBox ID="txtNumDiasAddCarrinho" runat="server" Text="" MaxLength="5" Width="50px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkAddNumDiasCarrinho" runat="server" Text="Add em todo o file?" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnAddNumDiasCarrinho" runat="server" Text="Add" CssClass="btnGeralAzul" OnClick="btnAddNumDiasCarrinho_Click" />
                                </td>
                            </tr>
                        </table>

                    </asp:Panel>

                    <asp:Button ID="btnCopiarFilefake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderCopiarFile" runat="server"
                        PopupControlID="PanelCopiarFile" TargetControlID="btnCopiarFilefake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelCopiarFile" CssClass="ModalPopup" Width="153px" Height="163px" Style="border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharCopiarFile" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <table>
                            <tr>
                                <td>File para copiar:
                                    <br />
                                    <asp:Label ID="lblFilePCopiar" runat="server" Text="" Style="font-weight: bold" />
                                </td>
                            </tr>
                            <tr>
                                <td>Nova data inicial:
                                    <br />
                                    <asp:TextBox ID="txtDataAddDias" runat="server" Text="" MaxLength="11" Width="80px" ViewStateMode="Enabled" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnCopiarFileGeral" runat="server" CssClass="btnGeralAzul" Text="Copiar" OnClick="btnCopiarFileGeral_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td>Novo File:
                                    <asp:Label ID="lblNovoFileCopiado" runat="server" Style="font-family: Arial; font-size: 12px; font-weight: bold;" Text="" />
                                </td>
                            </tr>
                        </table>

                    </asp:Panel>

                    <asp:Button ID="btnPoliticaChdFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderPoliticaChd" runat="server"
                        PopupControlID="PanelPoliticaChd" TargetControlID="btnPoliticaChdFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelPoliticaChd" CssClass="ModalPopup" Style="width: auto; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharPoliticaChd" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <asp:GridView ID="GridPoliticasCHDCadastro" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe política cadastrada."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="S_politicaCHD_qtd" HeaderText="Nr Chds">
                                        <HeaderStyle Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="S_politicaCHD_idadeDe" HeaderText="De" />
                                    <asp:BoundField DataField="S_politicaCHD_idade" HeaderText="Até" />
                                    <asp:BoundField DataField="S_politicaCHD_free" HeaderText="Free" />
                                    <asp:BoundField DataField="S_politicaCHD_valor" HeaderText="Valor" />
                                    <asp:BoundField DataField="S_politicaCHD_percent" HeaderText="Percent" />

                                </Columns>
                            </asp:GridView>
                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnMsgOperadorFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderMsgOperador" runat="server"
                        PopupControlID="PanelMsgOperador" TargetControlID="btnMsgOperadorFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelMsgOperador" CssClass="ModalPopup" Style="width: 400px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharMsgOp" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Remarks</b>
                            <br />
                            <br />
                            <asp:Label ID="lblMsgOperador" runat="server" Text="" Style="font-size: 12px;" />

                        </div>


                    </asp:Panel>

                    <asp:Button ID="btnDelColunasFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderDelColunas" runat="server"
                        PopupControlID="PanelDelColunas" TargetControlID="btnDelColunasFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelDelColunas" CssClass="ModalPopup" Style="width: 100px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="ImageButton1" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Colunas</b>
                            <br />
                            <br />
                            <asp:GridView ID="GridDelColunas" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não coluna cadastrada."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="Ranges_de" HeaderText="De" />
                                    <asp:BoundField DataField="Ranges_ate" HeaderText="Até" />

                                    <asp:TemplateField HeaderText="Del">
                                        <ItemTemplate>

                                            <asp:ImageButton ID="ExluirColunas" ToolTip="Excluir"
                                                runat="server" CommandArgument='<%# string.Format("{0},{1},{2},{3}", Eval("Ranges_de"), Eval("Ranges_ate"), Eval("Quotation_Id"), Eval("Ordem")) %>'
                                                OnCommand="ExluirColunas_Command"
                                                ImageUrl="~/images/Icones/delete.png" />

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>

                        </div>


                    </asp:Panel>

                    <asp:Button ID="btnOrdenarColunasFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderOrdenarColunas" runat="server"
                        PopupControlID="PanelOrdenarColunas" TargetControlID="btnOrdenarColunasFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelOrdenarColunas" CssClass="ModalPopup" Style="width: 100px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharOrdenarColunas" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Colunas</b>
                            <br />
                            <br />
                            <asp:GridView ID="GridViewOrdenarColunas" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe coluna cadastrada."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="Ranges_de" HeaderText="De" />
                                    <asp:BoundField DataField="Ranges_ate" HeaderText="Até" />

                                    <asp:TemplateField HeaderText="Del">
                                        <ItemTemplate>

                                            <asp:TextBox ID="txtOrdem" runat="server" Text='<%# Eval("Ordem") %>' MaxLength="2" Width="30px" />

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            <br />

                            <asp:Button ID="btnOrdenarColunas" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnOrdenarColunas_Click" />

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnAddTcFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddTc" runat="server"
                        PopupControlID="PanelAddTC" TargetControlID="btnAddTcFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddTC" CssClass="ModalPopup" Style="width: 100px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharAddTC" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; height: auto; width: auto; margin-top: 10px;">

                            <b>Colunas</b>
                            <br />
                            <br />
                            <asp:GridView ID="GridViewAddTc" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe coluna cadastrada."
                                Height="16px" Width="94px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:BoundField DataField="Ranges_de" HeaderText="De" />
                                    <asp:BoundField DataField="Ranges_ate" HeaderText="Até" />

                                    <asp:TemplateField HeaderText="TC">
                                        <ItemTemplate>

                                            <asp:TextBox ID="txtQtdTC" runat="server" Text="" MaxLength="2" Width="30px" />

                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            <br />

                            <asp:Button ID="btnSalvaTC" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvaTC_Click" />

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnAddNomeOpts" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddNomeOpts" runat="server"
                        PopupControlID="PanelAddNomeOpts" TargetControlID="btnAddNomeOpts"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddNomeOpts" CssClass="ModalPopup" Style="width: 200px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="ImageButton2" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; margin-left: auto; margin-right: auto; height: auto; width: 190px; margin-top: 10px; text-align: center;">

                            <asp:GridView ID="GridOptsFile" runat="server"
                                AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe opções de file."
                                Height="16px" Width="100px">
                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                <Columns>

                                    <asp:TemplateField HeaderText="Opções">

                                        <ItemTemplate>
                                            <table cellspacing="0" cellpadding="0" style="border: none;">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblNumOpc" runat="server" Text='<%# string.Format("{0}:{1}", "Opção" , Eval("OptQuote")) %>' />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtNomeOpcao" runat="server" Text='<%# Eval("OptQuoteNome") %>' placeholder="Nome da opção" MaxLength="50" Width="100px" />
                                                    </td>
                                                </tr>
                                            </table>

                                            <asp:Label ID="lblnum" runat="server" Text='<%# Eval("OptQuote") %>' Visible="false" />
                                        </ItemTemplate>

                                        <%--<FooterTemplate>

                                            <table cellspacing="0" cellpadding="0" style="border: none;">
                                                <tr>
                                                    <th>Cadastro:</th>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtNovaNomeOpcao" runat="server" Text='<%# Eval("OptQuoteNome") %>' MaxLength="50" Width="100px" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnSalvarNovaNomeOpts" runat="server" Text="add" OnCommand="btnSalvarNovaNomeOpts_Command" Height="22px" />
                                                    </td>
                                                </tr>
                                            </table>

                                        </FooterTemplate>--%>

                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                            <br />

                            <asp:Button ID="btnSalvarNomeOpts" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvarNomeOpts_Click" />

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnAddTarifaHotelVaziaFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderAddTarifaHotelVazia" runat="server"
                        PopupControlID="PanelAddTarfiaHotelVazia" TargetControlID="btnAddTarifaHotelVaziaFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelAddTarfiaHotelVazia" CssClass="ModalPopup" Style="width: 350px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharAddTarifaVazia" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; margin-left: auto; margin-right: auto; height: auto; width: 350px; margin-top: 10px;">

                            <fieldset>
                                <legend>Adicionar Hotel</legend>

                                <table>
                                    <tr>
                                        <td>Categoria
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlCategoriaAddTarifaHotelVazia" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Room
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlRoomAddTarifaHotelVazia" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Moeda
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlMoedaAddTafiaHotelVazia" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAddTarifaHotelVazia" runat="server" Text="Add" CssClass="btnGeralAzul" OnClick="btnAddTarifaHotelVazia_Click" />
                                        </td>
                                    </tr>
                                </table>

                            </fieldset>

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnSelectFileCopiaFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderSelectFileCopia" runat="server"
                        PopupControlID="PanelSelectFileCopia" TargetControlID="btnSelectFileCopiaFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelSelectFileCopia" CssClass="ModalPopup" Style="width: 350px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharSelectFileCopia" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; margin-left: auto; margin-right: auto; height: auto; width: 350px; margin-top: 10px;">

                            <fieldset>
                                <legend>Copiar File</legend>

                                <table>
                                    <tr>
                                        <td>Usuário</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="ddlUsuarioSelectFileCopia" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlUsuarioSelectFileCopia_SelectedIndexChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Cliente</td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:DropDownList ID="ddlClienteSelectFileCopia" runat="server" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="ddlClienteSelectFileCopia_SelectedIndexChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>File para copia
                                            <asp:TextBox ID="txtAutoSelectFileCopia" runat="server" Text="" MaxLength="20" Width="80" />
                                        </td>
                                        <td>Opção da copia
                                            <asp:DropDownList ID="ddlOptSelectFileCopia" runat="server">
                                                <asp:ListItem Selected="True" Value="1" Text="1"></asp:ListItem>
                                                <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                                <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                                <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                                <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                                <asp:ListItem Value="6" Text="6"></asp:ListItem>
                                                <asp:ListItem Value="7" Text="7"></asp:ListItem>
                                                <asp:ListItem Value="8" Text="8"></asp:ListItem>
                                                <asp:ListItem Value="9" Text="9"></asp:ListItem>
                                                <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnSelectFileCopia" runat="server" Text="Copiar" CssClass="btnGeralAzul" OnClick="btnSelectFileCopia_Click" />
                                            <asp:Button ID="btnSelectFileCopiaNCopia" runat="server" Text="Não Copiar" CssClass="btnGeralAzul" OnClick="btnSelectFileCopiaNCopia_Click" />
                                        </td>
                                    </tr>
                                </table>


                            </fieldset>

                        </div>

                    </asp:Panel>

                    <asp:Button ID="btnMarkupFile" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderMarkupFile" runat="server"
                        PopupControlID="PanelMarkupFile" TargetControlID="btnMarkupFile"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelMarkupFile" CssClass="ModalPopup" Style="width: 600px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="imgFecharMarkupFile" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <ajaxToolkit:TabContainer ID="TabContainerMarkup" runat="server" Height="350px" Width="590px" Style="margin-top: 10px">

                              <asp:TabPanel ID="tabLista" runat="server" HeaderText="Lista">
                                  <ContentTemplate>
                                      <div class="GridMarkups">
                                          <asp:GridView ID="GridMarkup" runat="server" AllowPaging="True" AutoGenerateColumns="False" CssClass="mGrid" EmptyDataText="Não existe markup cadastrado." GridLines="None" Height="16px">
                                              <AlternatingRowStyle CssClass="alt" />
                                              <Columns>
                                                  <asp:BoundField DataField="MarkupFile_dataInicial" DataFormatString="{0:dd.MM.yy}" HeaderText="Inicial" />
                                                  <asp:BoundField DataField="MarkupFile_dataFinal" DataFormatString="{0:dd.MM.yy}" HeaderText="Final" />
                                                  <asp:BoundField DataField="MarkupFile_hotel" HeaderText="Hotel" />
                                                  <asp:BoundField DataField="MarkupFile_descontoHotel" HeaderText="Desc Hotel" />
                                                  <asp:BoundField DataField="MarkupFile_servico" HeaderText="Serviço" />
                                                  <asp:BoundField DataField="MarkupFile_descontoServico" HeaderText="Desc Serviço" />
                                                  <asp:BoundField DataField="MarkupFile_seasonal" HeaderText="Seasonal" />
                                                  <asp:BoundField DataField="MarkupFile_meals" HeaderText="Meal" />
                                                  <asp:TemplateField>
                                                      <ItemTemplate>
                                                          <asp:ImageButton ID="imgBtnEditarMarkup" runat="server" CommandArgument='<%# Eval("MarkupFile_id") %>' ImageUrl="~/images/Icones/edit.png" OnCommand="EditarMarkup" ToolTip="Editar Markup" />
                                                      </ItemTemplate>
                                                      <HeaderStyle Wrap="False" />
                                                      <ItemStyle Wrap="False" />
                                                  </asp:TemplateField>
                                                  <asp:TemplateField>
                                                      <ItemTemplate>
                                                          <asp:ImageButton ID="imgBtnExcluirMarkup" runat="server" CommandArgument='<%# Eval("MarkupFile_id") %>' ImageUrl="~/images/Icones/delete.png" OnCommand="ExcluirMarkup" ToolTip="Excluir Markup" />
                                                      </ItemTemplate>
                                                      <HeaderStyle Wrap="False" />
                                                      <ItemStyle Wrap="False" />
                                                  </asp:TemplateField>
                                              </Columns>
                                              <PagerStyle CssClass="pgr" />
                                          </asp:GridView>
                                      </div>
                                  </ContentTemplate>
                              </asp:TabPanel>
                              <asp:TabPanel ID="tabCadastro" runat="server" HeaderText="Cadastro">
                                  <ContentTemplate>
                                      <div class="FormMarkup">
                                          <fieldset style="height: 310px">
                                              <legend>Cliente Markup</legend>
                                              <asp:TextBox ID="txtCodMarkup" runat="server" Visible="false" />
                                              <div class="box_form">
                                                  <asp:Label ID="lblDataInicial" runat="server" Text="Data inicial:" />
                                                  <br />
                                                  <asp:TextBox ID="txtDataInicialMarkup" runat="server" MaxLength="10" Text="" Width="100px" />
                                                  <asp:RequiredFieldValidator ID="RqDtInicial" runat="server" ControlToValidate="txtDataInicialMarkup" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblDataFinal" runat="server" Text="Data final:" />
                                                  <br />
                                                  <asp:TextBox ID="txtDataFinalMarkup" runat="server" MaxLength="10" Text="" Width="100px" />
                                                  <asp:RequiredFieldValidator ID="RqDtFinal" runat="server" ControlToValidate="txtDataFinalMarkup" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblMarkupHotel" runat="server" Text="Markup hotel:" />
                                                  <br />
                                                  <asp:TextBox ID="txtMarkupHotel" runat="server" MaxLength="10" Text="" Width="80px" />
                                                  <asp:RequiredFieldValidator ID="RqMakHotel" runat="server" ControlToValidate="txtMarkupHotel" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblMarkupDescHotel" runat="server" Text="Markup desconto hotel:" />
                                                  <br />
                                                  <asp:TextBox ID="txtMarkupDescHotel" runat="server" MaxLength="10" Text="" Width="80px" />
                                                  <asp:RequiredFieldValidator ID="RqMakDescHotel" runat="server" ControlToValidate="txtMarkupDescHotel" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblMarkupServico" runat="server" Text="Markup serviço:" />
                                                  <br />
                                                  <asp:TextBox ID="txtMarkupServico" runat="server" MaxLength="10" Text="" Width="80px" />
                                                  <asp:RequiredFieldValidator ID="RqMakServico" runat="server" ControlToValidate="txtMarkupServico" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblMarkupDescServico" runat="server" Text="Markup desconto serviço:" />
                                                  <br />
                                                  <asp:TextBox ID="txtMarkupDescServico" runat="server" MaxLength="10" Text="" Width="80px" />
                                                  <asp:RequiredFieldValidator ID="RqMakDescServico" runat="server" ControlToValidate="txtMarkupDescServico" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblSeasonal" runat="server" Text="Markup seasonal:" />
                                                  <br />
                                                  <asp:TextBox ID="txtMarkupSeasonal" runat="server" MaxLength="10" Text="" Width="80px" />
                                                  <asp:RequiredFieldValidator ID="RqMakSeasonal" runat="server" ControlToValidate="txtMarkupSeasonal" CssClass="MsgErro" ErrorMessage="*" ToolTip="Campo obrigatório" ValidationGroup="SalvarMarkup" />
                                              </div>
                                              <div class="box_form">
                                                  <asp:Label ID="lblMeal" runat="server" Text="Markup meal:" />
                                                  <br />
                                                  <asp:TextBox ID="txtMarkupMeal" runat="server" MaxLength="10" Text="" Width="80px" />
                                              </div>
                                              <div class="box_form_footer">
                                                  Cliente:
                                                  <asp:Label ID="lblNomeClienteMarkup" runat="server" Text="" />
                                              </div>
                                              <div class="box_form_footer">
                                                  <asp:Button ID="btnNovoMarkup" runat="server" CssClass="btnGeralAzul" OnClick="SalvarMarkup" Text="Salvar" ValidationGroup="SalvarMarkup" />
                                                  &nbsp;<asp:Button ID="btnUpdateMarkup" runat="server" CssClass="btnGeralAzul" OnClick="AtualizarMarkup" Text="Atualizar" ValidationGroup="SalvarMarkup" />
                                                  &nbsp;<asp:Button ID="btnLimpar" runat="server" CssClass="btnGeralAzul" Text="Limpar" />
                                              </div>
                                              <div class="box_form_footer">
                                                  <asp:Label ID="lblMsgCadMarkup" runat="server" CssClass="MsgErro" Text="" />
                                              </div>
                                          </fieldset>
                                      </div>
                                  </ContentTemplate>
                              </asp:TabPanel>

                          

                        </ajaxToolkit:TabContainer>

                    </asp:Panel>

                    <asp:Button ID="btnGeraPacoteFimFake" runat="server" Style="display: none;" />

                    <asp:ModalPopupExtender ID="ModalPopupExtenderGeraPacoteFim" runat="server"
                        PopupControlID="PanelGeraPacoteFim" TargetControlID="btnGeraPacoteFimFake"
                        BackgroundCssClass="ModalPopupBG" DropShadow="false" Drag="true">
                    </asp:ModalPopupExtender>

                    <asp:Panel ID="PanelGeraPacoteFim" CssClass="ModalPopup" Style="width: 400px; height: auto; border-radius: 5px; display: none; padding: 5px;" runat="server">

                        <asp:ImageButton ID="ImageButton3" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Height="20px" Width="20px" />

                        <div style="overflow-x: auto; overflow-y: auto; margin-left: auto; margin-right: auto; height: auto; width: 400px; margin-top: 10px;">

                            <fieldset>
                                <legend>Pacote Gerado</legend>

                                <table>
                                    <tr>
                                        <td>Code Pkg: 
                                        </td>
                                        <td>
                                            <asp:Label ID="lblPkgCode" runat="server" Text="" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Nome Pkg: 
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtNomePacote" runat="server" MaxLength="200" placeholder="Nome do Pacote" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Data From: 
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDataFromPacote" runat="server" Width="100px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Data To:   
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDataToPacote" runat="server" Width="100px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnSalvarPacote" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvarPacote_Click" />
                                        </td>
                                    </tr>
                                </table>


                            </fieldset>

                        </div>

                    </asp:Panel>


                </ContentTemplate>
            </asp:UpdatePanel>

            <div id="UpdateProgress"
                style="position: absolute; z-index: 1; left: 50%; top: 50%;">
                <asp:UpdateProgress ID="preLoading" runat="server"
                    AssociatedUpdatePanelID="">
                    <ProgressTemplate>

                        <asp:Image ID="imgLoading" runat="server"
                            ImageUrl="~/Images/ajax-loaderG.gif" />

                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>

        </div>

    </form>
</body>
</html>
